Guest User

Untitled

a guest
Jan 26th, 2017
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.00 KB | None | 0 0
  1.  
  2. #
  3. # ~/.bashrc
  4. #
  5.  
  6. alias sudo='sudo '
  7. alias ls='ls --color=always'
  8. alias dmesg='dmesg --color=always'
  9. alias grep='grep --color=always'
  10. alias gcc='gcc -fdiagnostics-color=always'
  11. alias pacman='pacman --color=always'
  12. alias dir='dir --color=always'
  13. alias pi='sudo pacman -S'
  14. alias pf='pacman -Ss'
  15. alias pd='sudo pacman -Rs'
  16. alias yi='yaourt -S'
  17. alias yf='yaourt -Ss'
  18. alias yd='yaourt -Rs'
  19.  
  20.  
  21. INPUT_COLOR="\[\033[0m\]"
  22. DIR_COLOR=""
  23. DIR="\[\033[38;5;39m\]\w\[$(tput sgr0)\]"
  24.  
  25. USER_NAME="\[\033[38;5;34m\][\[$(tput sgr0)\]\[\033[38;5;51m\]\u\[$(tput sgr0)\]\[\033[38;5;28m\]::\[$(tput sgr0)\]\[\033[38;5;51m\]\H\[$(tput sgr0)\]\[\033[38;5;34m\]]\[$(tput sgr0)\]"
  26.  
  27. SYMBOL="\[\033[0;32m\]>"
  28.  
  29. if [[ ${EUID} == 0 ]]; then
  30.     USER_NAME="\[\033[38;5;34m\][\[$(tput sgr0)\]\[\033[38;5;160m\]\u\[$(tput sgr0)\]\[\033[38;5;34m\]::\[$(tput sgr0)\]\[\033[38;5;51m\]\H\[$(tput sgr0)\]\[\033[38;5;34m\]]\[$(tput sgr0)\]"
  31.     SYMBOL="\[\033[38;5;160m\]>"
  32. fi
  33.  
  34. PS1="$USER_NAME $DIR_COLOR$DIR $SYMBOL $INPUT_COLOR"
Advertisement
Add Comment
Please, Sign In to add comment