Last active
November 21, 2019 07:35
-
-
Save burpnoes/9116314 to your computer and use it in GitHub Desktop.
Bash Git Prompt and Completion integration for MacOS (bash completion required)
This file contains 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
[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh" | |
GIT_PS1_SHOWUPSTREAM="auto" | |
GIT_PS1_SHOWCOLORHINTS="yes" | |
GIT_PS1_SHOWDIRTYSTATE=true | |
export PROMPT_COMMAND='__git_ps1 "\u@\h:\W" "\\\$ ";' |
Bash Git Prompt and Completion integration for Mac OS X Mavericks (Xcode required)
if [ -f /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash ]; then
. /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash
fi
source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh
GIT_PS1_SHOWUPSTREAM="auto"
GIT_PS1_SHOWCOLORHINTS="yes"
export PROMPT_COMMAND='__git_ps1 "\u@\h:\W" "\\\$ ";'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To install Bash Git Completion: https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion