Permalink
Browse files

bashrc: unify PS1 accross distros

  • Loading branch information...
1 parent 37e4a0e commit fceeea4c98fc52dfd5348a70a6b421974cf683bd @dearieme committed Jan 17, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 .bashrc
View
@@ -31,3 +31,9 @@ export HISTCONTROL=ignoredups
# Freshly brewed Perl :)
[ -f ${HOME}/perl5/perlbrew/etc/bashrc ] && source ${HOME}/perl5/perlbrew/etc/bashrc
+if [[ ${EUID} == 0 ]] ; then
+ PS1='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] '
+else
+ PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
+fi
+export PS1

0 comments on commit fceeea4

Please sign in to comment.