Fixed PS1 to show a # for the root-user
svn path=/nixos/trunk/; revision=11077
This commit is contained in:
parent
7c93a71468
commit
1e5f26537d
@ -3,7 +3,7 @@
|
|||||||
# A nice prompt.
|
# A nice prompt.
|
||||||
PROMPT_COLOR="1;31m"
|
PROMPT_COLOR="1;31m"
|
||||||
let $UID && PROMPT_COLOR="1;32m"
|
let $UID && PROMPT_COLOR="1;32m"
|
||||||
PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]$\[\033[0m\] "
|
PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]\\$\[\033[0m\] "
|
||||||
if test "x$TERM" == "xxterm"; then
|
if test "x$TERM" == "xxterm"; then
|
||||||
PS1="\033]2;\h:\u:\w\007$PS1"
|
PS1="\033]2;\h:\u:\w\007$PS1"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user