forked from kevinelliott/.dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bash_completion.sh
37 lines (30 loc) · 1.18 KB
/
bash_completion.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Set git autocompletion and PS1 integration
# git autocompletion in git 1.7.x and below
if [ -f `brew --prefix`/etc/bash_completion.d/git-completion.bash ]; then
. `brew --prefix`/etc/bash_completion.d/git-completion.bash
fi
# git autocompletion in git 1.8.x
if [ -f `brew --prefix`/etc/bash_completion.d/git-prompt.sh ]; then
. `brew --prefix`/etc/bash_completion.d/git-prompt.sh
fi
# git autocompletion in git 2.1.x
if [ -f `brew --prefix git`/etc/bash_completion.d/git-completion.bash ]; then
. `brew --prefix git`/etc/bash_completion.d/git-completion.bash
fi
# git autocompletion in git 2.1.x
if [ -f `brew --prefix git`/etc/bash_completion.d/git-prompt.sh ]; then
. `brew --prefix git`/etc/bash_completion.d/git-prompt.sh
fi
GIT_PS1_SHOWDIRTYSTATE=true
if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi
# ack autocompletion
# TODO: This is broken! Fix.
#if [ -f /usr/local/etc/bash_completion.d/ack.bash_completion.sh ]; then
# . /usr/local/etc/bash_completion.d/ack.bash_completion.sh
#fi
# hub autocompletion
if [ -f /usr/local/etc/bash_completion.d/hub.bash_completion.sh ]; then
. /usr/local/etc/bash_completion.d/hub.bash_completion.sh
fi