-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompletion.bash
23 lines (20 loc) · 908 Bytes
/
completion.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Do not autocomplete when accidentally pressing Tab on an empty line.
shopt -s no_empty_cmd_completion
# MacPorts Bash shell command completion
if [ -f /opt/local/etc/profile.d/bash_completion.sh ]; then
. /opt/local/etc/profile.d/bash_completion.sh
fi
if [ -f /opt/local/share/bash-completion/completions/git ]; then
source /opt/local/share/bash-completion/completions/git
fi
if [ -f /usr/share/git-core/git-completion.bash ]; then
source /usr/share/git-core/git-completion.bash
fi
if [ -f /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash ]; then
source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash
fi
# For Debian
if [ -f /etc/bash_completion.d/git ]; then
source /etc/bash_completion.d/git
fi
[ -s "/usr/local/opt/nvm/etc/bash_completion" ] && . "/usr/local/opt/nvm/etc/bash_completion" # This loads nvm bash_completion