Guest User

Untitled

a guest
Jun 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. # if GIT_PS1_SHOWDIRTYSTATE is set to a nonempty value,
  2. # unstaged (*) and staged (+) changes will be shown next to the branch name
  3. export GIT_PS1_SHOWDIRTYSTATE=1
  4.  
  5. # if GIT_PS1_SHOWSTASHSTATE is set to a nonempty value,
  6. # a ‘$’ will be shown next to the branch name if something is stashed
  7. export GIT_PS1_SHOWSTASHSTATE=1
  8.  
  9. # if GIT_PS1_SHOWUNTRACKEDFILES is set to a nonempty value,
  10. # a ‘%’ will be shown next to the branch name if there’re untracked files
  11. export GIT_PS1_SHOWUNTRACKEDFILES=1
  12.  
  13. # my fancy non disturbing prompt, listing the current git branch
  14. export PS1='\[\033[37m\]\h\[\033[00m\]:\w\[\033[1;33m\]$(__git_ps1 "@%s")\[\033[00m\]$ '
Add Comment
Please, Sign In to add comment