Guest User

Untitled

a guest
Nov 17th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. alias v="ls -ailAF"
  2. alias dr="drush"
  3.  
  4. ## Git aliases
  5. alias gitco="git checkout"
  6. alias gitst="git status"
  7. alias gitbr="git branch"
  8. alias gitlog="git log --pretty=oneline --graph"
  9.  
  10.  
  11. ##############
  12. ## Bash prompt
  13. function parse_git_branch {
  14. git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
  15. }
  16.  
  17. function proml {
  18. local BLUE="\[\033[0;34m\]"
  19. local LIGHT_BLUE="\[\033[1;34m\]"
  20. local RED="\[\033[0;31m\]"
  21. local LIGHT_RED="\[\033[1;31m\]"
  22. local GREEN="\[\033[0;32m\]"
  23. local LIGHT_GREEN="\[\033[1;32m\]"
  24. local WHITE="\[\033[1;37m\]"
  25. local LIGHT_GRAY="\[\033[0;37m\]"
  26. case $TERM in
  27. xterm*)
  28. TITLEBAR='\[\033]0;\u@\h:\w\007\]'
  29. ;;
  30. *)
  31. TITLEBAR=""
  32. ;;
  33. esac
  34.  
  35. PS1="$LIGHT_GREEN\u@\h $LIGHT_BLUE\w$LIGHT_GRAY\$(parse_git_branch) $BLUE\$ $WHITE"
  36. PS2='> '
  37. PS4='+ '
  38. }
  39. proml
Add Comment
Please, Sign In to add comment