Wednesday, October 28, 2009

Get a short prompt in linux terminal

The default ubuntu linux prompt shows the all the directories:
user@user~desktop:~/home/user/work/project$
To make it shorter, add following two lines:


PS1="[\W]\\$ "
PS2="> "

to .bashrc file. Don't forget to 'source ~/.bashrc'

1 comment: