-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_completions
25 lines (23 loc) · 905 Bytes
/
bash_completions
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
# bash completions
# Ninja
if [ -r /usr/share/bash-completion/completions/ninja ]; then
# TODO(mpercy): why would this not be automatically included by the distro?
. /usr/share/bash-completion/completions/ninja
elif [ -r /etc/bash_completion.d/ninja ]; then
. /etc/bash_completion.d/ninja
elif [ -r $HOME/src/ninja/misc/bash-completion ]; then
. $HOME/src/ninja/misc/bash-completion
elif [ -r /usr/local/etc/bash_completion.d/ninja ]; then
. /usr/local/etc/bash_completion.d/ninja
elif [ -r ~/.brew/etc/bash_completion.d/ninja-completion.sh ]; then
. ~/.brew/etc/bash_completion.d/ninja-completion.sh
fi
# Ninja for Kudu
if complete -p | grep -q _ninja_target; then
complete -F _ninja_target n ktt sktt hktt kbtt cbtt scbtt skbtt hkbtt gdbtt tsgdbtt klog
fi
# Git
#
if [ -r ~/.brew/etc/bash_completion.d/git-completion.bash ]; then
. ~/.brew/etc/bash_completion.d/git-completion.bash
fi