Advertisement
Guest User

Untitled

a guest
May 25th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. if ! type __git_ps1 &> /dev/null && [ -e /usr/share/git-core/contrib/completion/git-prompt.sh ]; then
  2. . /usr/share/git-core/contrib/completion/git-prompt.sh
  3. fi
  4. if type __git_ps1 &> /dev/null; then
  5. export GIT_PS1_SHOWDIRTYSTATE=1
  6. export GIT_PS1_SHOWUNTRACKEDFILES=1
  7. export GIT_PS1_SHOWCOLORHINTS=1
  8. export PROMPT_DIRTRIM=2
  9. export PROMPT_COMMAND='__git_ps1 "\w" "\\\$ "'
  10. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement