Skip to content

Commit

Permalink
Look harder for the git completion file.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Reid committed Jan 11, 2011
1 parent 4ba41b7 commit b40f512
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions dreid/git.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
GIT_COMP="/usr/local/etc/bash_completion.d/git-completion.bash";
source $GIT_COMP
GIT_COMP_SEARCH=(
"/usr/local/etc/bash_completion.d/git-completion.bash"
"/etc/bash_completion.d/git"
)

for git_comp in ${GIT_COMP_SEARCH[*]}; do
if [[ -f $git_comp ]]; then
source $git_comp
break
fi
done

GIT_PS1_SHOWDIRTY_STATE=t
GIT_PS1_SHOWUPSTREAM="auto"

0 comments on commit b40f512

Please sign in to comment.