Skip to content

Commit

Permalink
display red and # for root
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Matzko committed Apr 15, 2011
1 parent edf4971 commit 8838387
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion load.sh
@@ -1,6 +1,12 @@
source ~/.bash_scripts/git-completion.sh

# colors with git repo info
PS1='\h:\w\[\033[32m\]$(__git_ps1) \[\033[0m\]$ '
# test for root
if [ $(id -u) -eq 0 ];
then
PS1='\[\033[31m\](\u)\[\033[0m\] $\h:\w\[\033[32m\]$(__git_ps1) \[\033[0m\]# '
else
PS1='\h:\w\[\033[32m\]$(__git_ps1) \[\033[0m\]$ '
fi

export TERM=xterm-256color

0 comments on commit 8838387

Please sign in to comment.