diff --git a/bash/completion.bash b/bash/completion.bash new file mode 100644 index 0000000..be08db4 --- /dev/null +++ b/bash/completion.bash @@ -0,0 +1,7 @@ +completion="$(brew --prefix)/etc/profile.d/bash_completion.sh" + +if test -f "$completion" +then + # load bash completion + source "$completion" +fi diff --git a/bash/prompt.bash b/bash/prompt.bash index 6befcdc..0250798 100644 --- a/bash/prompt.bash +++ b/bash/prompt.bash @@ -1,4 +1,5 @@ -git_prompt=/usr/local/etc/bash_completion.d/git-prompt.sh +git_prompt="$(brew --prefix)/etc/bash_completion.d/git-prompt.sh" + [ -f $git_prompt ] && source $git_prompt # regular colors