Unusual termianl prompt?

kevin.kempter at dataintellect.com kevin.kempter at dataintellect.com
Thu Mar 9 22:34:28 UTC 2006


On Thursday 09 March 2006 15:20, Tim Alberts wrote:
> I'm used to the prompt on the terminal being something like
>
> [user at host ~]$ -or- [user at 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 at host PS1 would be something like:
export PS1='[\u@\h~]$ ' 
-or-
export PS1='\u@\h [$PWD] $ '




More information about the fedora-list mailing list