Bash-script for MSX lovers <:RNFF:>

Página 1/2
| 2

Por molchuvka

Expert (85)

Imagen del molchuvka

04-09-2011, 06:36

echo >> ~/.bashrc
echo export PS1=\"Ok\\n\" >> ~/.bashrc
bash
Ok
lsb_release -rd
Description: Ubuntu 10.04.3 LTS
Release: 10.04
Ok
echo Syntax error in echo
Syntax error in echo
Ok
renum
Ïðîãðàììà 'renum' íà äàííûé ìîìåíò íå óñòàíîâëåíà. Âû ìîæåòå óñòàíîâèòü å¸, âûïîëíèâ:
sudo apt-get install bwbasic
Ok
export LANG=en
Ok
renum
The program 'renum' is currently not installed. You can install it by typing:
sudo apt-get install bwbasic
Ok
sudo apt-get install bwbasic
...
Ok
10 help
10: command not found
Ok
Running Naked in a Field of Flowers

Login sesión o register para postear comentarios

Por ro

Scribe (4698)

Imagen del ro

04-09-2011, 08:39

wtf....

Por molchuvka

Expert (85)

Imagen del molchuvka

04-09-2011, 09:11

PS1 is a bash prompt Ok\n

Por edoz

Prophet (2441)

Imagen del edoz

04-09-2011, 10:04

hu ?

Por evulopah

Paladin (669)

Imagen del evulopah

04-09-2011, 10:20

Strangest post ever! The only recognizable for me is the sudo command, it's a unix-like command!

Por molchuvka

Expert (85)

Imagen del molchuvka

04-09-2011, 10:26

This post for those having unix/linux/unixlike.

Por pitpan

Prophet (3152)

Imagen del pitpan

04-09-2011, 15:08

Indeed!

Works like a charm for me (Ubuntu 11.04). Really curious! And if you configure the colours and font, then it rocks!

Por pitpan

Prophet (3152)

Imagen del pitpan

04-09-2011, 16:18

Just in case: to restore the original config, all you have to do is

rm .bashrc

So that you delete the custom config and restore the original bash settings.

Por molchuvka

Expert (85)

Imagen del molchuvka

05-09-2011, 02:56

Hey hey hey!!!

pitpan's suggestion is highly EVIL!!! To restore, you need to run
gedit ~/.bashrc

In gedit, delete a line
export PS1="Ok\n"

and save the file, then close gedit.

~/.bashrc often contain default bash configuration and is often non-empty file by default.

This file contents is being setup by either Ubuntu or their upstream -- so be careful to not delete it!

Por molchuvka

Expert (85)

Imagen del molchuvka

05-09-2011, 02:57

Instead of deleting a line, you may prefix it with #:

#export PS1="Ok\n"

This has the same effect as deleting, but you preserve the text within the file.

Then, save and close.

Por molchuvka

Expert (85)

Imagen del molchuvka

05-09-2011, 02:59

I tell about deleting a *line* in a file, and pitapan tells about EVIL *deleting a file*.

Página 1/2
| 2