Terminal Prompt
Post date: 25-Nov-2009 21:08:26
When I opened a terminal the prompt said
myname@mycomputer:~$
which is nice. But after changing the directory to Folder/Subfolder/Subsubfolder, it got messy,
myname@mycomputer:~/Folder/Subfolder/Subsubfolder$
Since the command pwd shows the path of current directory, I wanted to drop all this bothering information.
SOLUTION
Open the terminal (or if it's opened go to your folder)
$ cd
Open the .bashrc file
$ nano .bashrc
Look for the lines where
PS1='....some messy stuff here...'
is written, and erase the values \w from them.
Save the file (C-o) and exit (C-x).
Restart the terminal.
Enjoy!