[Wylug-help] Bash Profile

Smylers Smylers at stripey.com
Thu Nov 18 22:49:33 GMT 2004


Dylan writes:

> The problem is, when I open a gnome terminal, it says bash-3.00$
> instead of the nice dylan at cartman ~]# I used to have.
>
> So, what config do I change to get the nice informative bash prompt?

In ~/.bashrc put something along the lines of:

  if [ "$PS1" ]
  then
    PS1='\u@\h \w]\$ '
  fi

For full details see the 'Bash Prompt How-To':

  http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/

Smylers





More information about the Wylug-help mailing list