SHARE
TWEET

bash config

thunderbirdtr Nov 22nd, 2011 23 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # .bashrc
  2.  
  3. # Source global definitions
  4. if [ -f /etc/bashrc ]; then
  5.         . /etc/bashrc
  6. fi
  7.  
  8. # User specific aliases and functions
  9.  
  10. source $HOME/.envrc
  11.  
  12. # NEW. FANCY PROMPT
  13. if [[ $EUID == 0 ]] ; then
  14. PS1='\[\033[01;31m\]\u\[\033[01;30m\]@\[\033[01;34m\]\h\[\033[01;30m\]:\[\033[01;34m\]\w\[\033[00m\]\$' #RED
  15. else
  16. PS1='\[\033[01;32m\]\u\[\033[01;30m\]@\[\033[01;34m\]\h\[\033[01;30m\]:\[\033[01;34m\]\w\[\033[00m\]\$' #Green
  17.  
  18. # PS1='\[\033[01;34m\]\u\[\033[01;30m\]@\[\033[01;34m\]\h\[\033[01;30m\]:\[\033[01;34m\]\w\[\033[00m\]\$' #Blue
  19. fi
  20.  
  21.  
  22. cd ~
  23.  
RAW Paste Data
Top