Skip to content

Instantly share code, notes, and snippets.

@kkpoon
Last active November 27, 2016 14:18
Show Gist options
  • Save kkpoon/62bdc537f5176dec963ddb04162cabbd to your computer and use it in GitHub Desktop.
Save kkpoon/62bdc537f5176dec963ddb04162cabbd to your computer and use it in GitHub Desktop.
macos git environment
# 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
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