diff options
Diffstat (limited to 'bashrc')
| -rw-r--r-- | bashrc | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -42,7 +42,14 @@ case "$TERM" in ;; esac -PS1=${TITLE}'(\[\033[1;33m\]\u\[\033[0m\]@\[\033[0;32m\]\h\[\033[0m\]) \W$(__git_ps1) \[\033[0;31m\]\\$\[\033[0m\] > ' +# prompt +reset='\[\033[0m\]' +yellow_b='\[\033[1;33m\]' +green='\[\033[0;32m\]' +red='\[\033[0;31m\]' +red_b='\[\033[1;31m\]' +[ $(id -u) -eq 0 ] && user_color=$red_b || user_color=$yellow_b +PS1=${TITLE}"($user_color\u$reset@$green\h$reset) \W\$(__git_ps1) $red\$$reset > " export PATH=~/Apps/bin:$PATH export EDITOR="/usr/bin/vim" |
