Guest User

Untitled

a guest
Aug 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. export GITAWAREPROMPT=~/.bash/git-aware-prompt
  2. source "${GITAWAREPROMPT}/main.sh"
  3.  
  4. export PS1="\u@\h \W \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ "
  5. export SUDO_PS1="\[$bakred\]\u@\h\[$txtrst\] \w\$ "
  6.  
  7. [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
  8. source ~/.profile
  9.  
  10. txtcyn=$'\e[0;36m' # Cyan
  11. txtrst=$'\e[0m' # Text Reset
  12. function parse_git_branch() {
  13. git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
  14. }
  15. export PS1="⚡️ \W\[$txtcyn\]\$(parse_git_branch) \[$txtrst\]\$ "
  16.  
  17. # Show dirty state in prompt when in Git repos
  18. export GIT_PS1_SHOWDIRTYSTATE=1
Add Comment
Please, Sign In to add comment