Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.44 KB | None | 0 0
  1. if [[ ${EUID} == 0 ]] ; then
  2.         PS1='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] '
  3. else
  4.         PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
  5. fi
  6.  
  7. if type -P dircolors >/dev/null ; then
  8.         if [[ -f ~/.dir_colors ]] ; then
  9.                 eval $(dircolors -b ~/.dir_colors)
  10.         elif [[ -f /etc/DIR_COLORS ]] ; then
  11.                 eval $(dircolors -b /etc/DIR_COLORS)
  12.         fi
  13. fi
  14. alias ls='ls --color=auto'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement