Guest User

Untitled

a guest
Jul 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. # Setup command prompt
  2. if [ "$TERM" != 'dumb' ] && [ -n "$BASH" ] && [ -n "$PS1" ]; then
  3. if [ `/usr/bin/whoami` = 'root' ]; then
  4. export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\w \n\$ \[\033[00m\]'
  5. else
  6. export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\w \n\$ \[\033[00m\]'
  7. fi
  8. fi
Add Comment
Please, Sign In to add comment