ZappeL

colorize_bash.sh

Apr 19th, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | None | 0 0
  1. if [[ ${EUID} == 0 ]] ; then
  2.     PS1='\[\033[01;31m\]\u\[\033[01;96m\]@\[\033[01;32m\]$(hostname -f)\[\033[01;96m\]:\[\033[01;34m\]\w \$\[\033[00m\] '
  3. else
  4.     PS1='\[\033[01;32m\]\u\[\033[01;96m\]@\[\033[01;32m\]$(hostname -f)\[\033[01;96m\]:\[\033[01;34m\]\w \$\[\033[00m\] '
  5. fi
Advertisement
Add Comment
Please, Sign In to add comment