Created
October 29, 2018 12:29
-
-
Save martyychang/1e8879011b1bcac10bd179f7639dfbcb to your computer and use it in GitHub Desktop.
Better Git integration with Terminal on Mac OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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