New on cable. Bash prompt name changed?

Ed Greshko Ed.Greshko at greshko.com
Tue Apr 11 01:47:16 UTC 2006


ron wrote:

>> if you don't mind the fact your hostname changed but just want to
>> control the bash prompt.
> 
>> -Andy
>> -------------------------------
> 
> Andy,
> 
> I CHANGED THIS FILE:
> 
>  /etc/dhclient-eth0.conf
> 
> I tried adding:
.
.

> but it doesn't seem to work. What am I doing wrong?

Why not make it easy on yourself...

If you look in /etc/bashrc you can see how the bash prompt is formed
starting at line 15.  You can modify your .bashrc based on that to get
whatever you need/like.

I've got some hideously long directory names so I just simply add:

PS1="[\u@\h ]\\$ "





More information about the users mailing list