Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export GITAWAREPROMPT=~/.bash/git-aware-prompt
- source "${GITAWAREPROMPT}/main.sh"
- export PS1="\u@\h \W \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ "
- export SUDO_PS1="\[$bakred\]\u@\h\[$txtrst\] \w\$ "
- [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
- source ~/.profile
- txtcyn=$'\e[0;36m' # Cyan
- txtrst=$'\e[0m' # Text Reset
- function parse_git_branch() {
- git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
- }
- export PS1="⚡️ \W\[$txtcyn\]\$(parse_git_branch) \[$txtrst\]\$ "
- # Show dirty state in prompt when in Git repos
- export GIT_PS1_SHOWDIRTYSTATE=1
Add Comment
Please, Sign In to add comment