I got tired of looking at just
[root@host log]# for my prompt.
Showing only my current directory
I would rather have
Which shows the full path
You can modify the /etc/bashrc file ( back it up first!!!) to change this.
Look for this line in the /etc/bashrc file:
[ “$PS1” = “\s-\v\$ ” ] && PS1=”[u@h W]\$ “
Change it to:
[ “$PS1” = “\s-\v\$ ” ] && PS1=”[u@h w]\$ “
Notice the uppercase “W” became a lowercase “w”. Save the file and log off/log on. Look at your prompt. Now, I have no questions as to which directory I’m in.
Here’s a link to the original post: http://www.vmware.com/community/thread.jspa?messageID=211436&211436
Posted by Jase to Computer Stuff at 3/16/2006 02:19:11 PM