-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc.completions
51 lines (43 loc) · 1.6 KB
/
.bashrc.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
if command -v brew &>/dev/null; then
# homebrew bash-completion@2
if [ -r $(brew --prefix)/etc/profile.d/bash_completion.sh ]; then
source $(brew --prefix)/etc/profile.d/bash_completion.sh
fi
# git-completion
if [ -r $(brew --prefix)/etc/bash_completion.d/git-completion.bash ]; then
source $(brew --prefix)/etc/bash_completion.d/git-completion.bash
fi
# bazel completion
if [ -r $(brew --prefix)/etc/bash_completion.d/bazel-complete.bash ]; then
source $(brew --prefix)/etc/bash_completion.d/bazel-complete.bash
fi
# rustup completion
if [ -r $(brew --prefix)/etc/bash_completion.d/rustup.bash-completion ]; then
source $(brew --prefix)/etc/bash_completion.d/rustup.bash-completion
fi
# cargo completion
if [ -r $(brew --prefix)/etc/bash_completion.d/cargo ]; then
source $(brew --prefix)/etc/bash_completion.d/cargo
fi
# brew completion
if [ -r $(brew --prefix)/etc/bash_completion.d/brew ]; then
source $(brew --prefix)/etc/bash_completion.d/brew
fi
# git-prompt
if [ -r $(brew --prefix)/etc/bash_completion.d/git-prompt.sh ]; then
source $(brew --prefix)/etc/bash_completion.d/git-prompt.sh
fi
else
# git prompt
if [ -r $HOME/bin/git-prompt.sh ]; then
source $HOME/bin/git-prompt.sh
fi
# git completion
if [ -r $HOME/bin/git-completion.bash ]; then
source $HOME/bin/git-completion.bash
fi
# bazel completion
if [ -f /usr/share/bash-completion/completions/bazel ]; then
source /usr/share/bash-completion/completions/bazel
fi
fi