Skip to content

Instantly share code, notes, and snippets.

@martyychang
Created October 29, 2018 12:29
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 martyychang/1e8879011b1bcac10bd179f7639dfbcb to your computer and use it in GitHub Desktop.
Save martyychang/1e8879011b1bcac10bd179f7639dfbcb to your computer and use it in GitHub Desktop.
Better Git integration with Terminal on Mac OS X
# Git shell
# https://gist.github.com/trey/2722934
source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash
source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh
GIT_PS1_SHOWDIRTYSTATE=true
GIT_PS1_SHOWCOLORHINTS=true
export PS1='\[\033[0;36m\]\u@\h\[\033[0;35m\]:\[\033[0;33m\]\w\[\033[0;37m\]$(__git_ps1)\[\033[0m\]\n\$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment