Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. export PATH=/usr/local/bin:/usr/local/sbin:$PATH
  2. export NVM_DIR="$HOME/.nvm"
  3. . "/usr/local/opt/nvm/nvm.sh"
  4. export PATH="$HOME/.rbenv/bin:$PATH"
  5. eval "$(rbenv init -)"
  6.  
  7. if [ -f $(brew --prefix)/etc/bash_completion ]; then
  8. . $(brew --prefix)/etc/bash_completion
  9. fi
  10.  
  11. function git_branch {
  12. git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\* \1/'
  13. }
  14.  
  15. function prompt {
  16. local BLACK="\[\033[0;30m\]"
  17. local RED="\[\033[0;31m\]"
  18. local GREEN="\[\033[0;32m\]"
  19. local YELLOW="\[\033[0;33m\]"
  20. local BLUE="\[\033[0;34m\]"
  21. local PURPLE="\[\033[0;35m\]"
  22. local CYAN="\[\033[0;36m\]"
  23. local WHITE="\[\033[0;37m\]"
  24. local RESETCOLOR="\[\e[00m\]"
  25.  
  26. export PS1="$BLUE\u$RESETCOLOR: \w $GREEN\$(git_branch)\n$YELLOW\$ "
  27. trap 'tput sgr0' DEBUG
  28. }
  29.  
  30. prompt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement