Commit 10ef8f8c authored by Chris's avatar Chris

Clean up the PS1_PRE and PS1_POST declarations

parent 6b26c7ca
......@@ -51,19 +51,16 @@ fi
if [ "$color_prompt" = yes ] && [ "`id -u`" -eq 0 ]; then
# Red prompt for root
# PS1='${debian_chroot:+($debian_chroot)}\h:\[\033[31m\][\w]\[\033[00m\] \$ '
PS1_PRE='${debian_chroot:+($debian_chroot)}\h:\[\033[31m\][\w]\[\033[00m\]'
PS1_POST=' \$ '
PS1="$PS1_PRE$PS1_POST"
PS1_PRE='${debian_chroot:+($debian_chroot)}\u@\h:\[\033[31m\][\w]\[\033[0m\]'
else
# Default prompt for everyone else
# PS1='${debian_chroot:+($debian_chroot)}\h:\[\033[38;5;25m\][\w]\[\033[00m\] \$ '
PS1_PRE='${debian_chroot:+($debian_chroot)}\h:\[\033[38;5;25m\][\w]\[\033[00m\]'
PS1_POST=' \$ '
PS1="$PS1_PRE$PS1_POST"
PS1_PRE='${debian_chroot:+($debian_chroot)}\u@\h:\[\033[34m\][\w]\[\033[0m\]'
fi
unset color_prompt force_color_prompt
PS1_POST=' \$ '
PS1="$PS1_PRE$PS1_POST"
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
......
......@@ -14,7 +14,7 @@ if [ -f ~/.git-prompt.sh ]; then
fi
if [ -z ${PS1_PRE+x} ] && [ -z ${PS1_POST+x} ]; then
PS1_PRE='${debian_chroot:+($debian_chroot)}\h:\[\033[38;5;25m\][\w]\[\033[00m\]'
PS1_PRE='${debian_chroot:+($debian_chroot)}\u@\h:\[\033[34m\][\w]\[\033[0m\]'
PS1_POST=' \$ '
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment