Last active
November 27, 2016 14:18
-
-
Save kkpoon/62bdc537f5176dec963ddb04162cabbd to your computer and use it in GitHub Desktop.
macos git environment
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
# git tab completion (homebrew) | |
if [ -f `brew --prefix`/etc/bash_completion.d/git-completion.bash ]; then | |
. `brew --prefix`/etc/bash_completion.d/git-completion.bash | |
fi | |
if [ -f `brew --prefix`/etc/bash_completion.d/git-prompt.sh ]; then | |
. `brew --prefix`/etc/bash_completion.d/git-prompt.sh | |
GIT_PS1_SHOWDIRTYSTATE=true | |
export PS1='\u:\W$(__git_ps1 " (%s)") \$ ' | |
fi | |
# hub completion | |
if [ -f `brew --prefix`/etc/bash_completion.d/hub.bash_completion.sh ]; then | |
. `brew --prefix`/etc/bash_completion.d/hub.bash_completion.sh | |
fi | |
# git-flow completion | |
if [ -f `brew --prefix`/etc/bash_completion.d/git-flow-completion.bash ]; then | |
. `brew --prefix`/etc/bash_completion.d/git-flow-completion.bash | |
fi | |
if [ -f ~/.profile ]; then | |
. ~/.profile | |
fi |
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
.DS_Store |
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
brew install git git-lfs hub git-flow bash-completion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment