Re: Unusual termianl prompt?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 09 March 2006 15:20, Tim Alberts wrote:
> I'm used to the prompt on the terminal being something like
>
> [user@host ~]$ -or- [user@host ~]#
>
> I have a system that shows the prompt as
>
> -bash-3.00#
>
> when logged in as root.  However if I log in as a system user, it appears
> normal to me.
>
> How is this configured and how do I make it 'normal'?

You need to set the environment variable PS1
mine prints the current directory and then a prompt on the line below the 
current dir display:

export PS1='\[\n[$PWD]\] \n\[\033[1;34m\]\u@\h\[\033[m $\] '

the standard user@host PS1 would be something like:
export PS1='[\u@\h~]$ ' 
-or-
export PS1='\u@\h [$PWD] $ '


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux