Click to See Complete Forum and Search --> : Shell Prompts


fod
03-10-2001, 09:31 PM
With my SuSE, when i run as root and user i get a > for the shell prompt... That means incopmlete command or something.. But it has always been like that...

What has happened to # and $?

bdl
03-10-2001, 10:20 PM
What shell are you running? You can change your prompt at any time with 'PS1=<string>' like so:

PS1="\u@\h:{\w}\\$ "

(which yields user@host:{~/}$ )

You'll want to put this line in your ~/.profile or ~/.bash_profile rc file. Then when you login, you'll always have the same prompt.


Please see the Bash-Prompt HOW-TO (http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Bash-Prompt-HOWTO.html) for more details. Obviously there will be differences for different shells, but you get the idea.