VMware: Full path in ESX 2.5/3.0 Service Console

This is an old post, but I redid the blog...
Not sure how many of you use PuTTY and the COS, but I figured I'd post this tidbit.

I got tired of looking at just
[root@host log]# for my prompt.
Showing only my current directory

I would rather have
[root@host /var/log]#
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

Labels:

« Home | Next »

0 Comments:

Post a Comment

Links to this post:

Create a Link

f