Skip to content

Instantly share code, notes, and snippets.

@dirtycode7
Last active April 5, 2020 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dirtycode7/d8abe04e6126b32881302d177b150d5e to your computer and use it in GitHub Desktop.
Save dirtycode7/d8abe04e6126b32881302d177b150d5e to your computer and use it in GitHub Desktop.
bash + $(__git_ps1)
source ~/.git-prompt.sh
export GIT_PS1_SHOWUPSTREAM=1
export GIT_PS1_SHOWUNTRACKEDFILES=1
export GIT_PS1_SHOWDIRTYSTATE=1
export PS1=''$'\n [ \w ] $(__git_ps1) '$'\n$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment