Add: Different Prompt for user/root

This commit is contained in:
Gerrit Pannek 2017-11-03 08:49:05 +01:00
parent 7e83d4d4c9
commit 93292f5f46

8
bashrc
View file

@ -1,4 +1,10 @@
PS1='\[\033[0;32m\]me@\h\[\033[0m\] [\[\033[0;33m\]\w\[\]\[\033[0;32m\]] $ \[\033[0m\]' if [ $UID -eq 0 ] ; then
PROMPT_SUFFIX='\[\033[1;31m\] # \[\033[0m\]'
else
PROMPT_SUFFIX='\[\033[0;32m\] $ \[\033[0m\]'
fi
PS1='\[\033[0;32m\]me@\h\[\033[0m\] [\[\033[0;33m\]\w\[\]\[\033[0;32m\]]'$PROMPT_SUFFIX
export PATH=$PATH:~/bin:~/local/bin export PATH=$PATH:~/bin:~/local/bin
function tmux_title { function tmux_title {