-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bash_completion
More file actions
32 lines (29 loc) · 1.02 KB
/
.bash_completion
File metadata and controls
32 lines (29 loc) · 1.02 KB
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
# .bash_completion
# vim: set filetype=bash:
# shellcheck shell=bash
# Emacs stuff
# Local Variables:
# mode: sh
# End:
# source local shell overrides and additions
for _COMPLETION in "/usr/local/share/bash-completion/bash_completion" "/usr/local/etc/profile.d/bash_completion.sh" "$NVM_DIR/bash_completion"; do
# shellcheck disable=SC1090
[ -r "${_COMPLETION}" ] && . "${_COMPLETION}"
done
unset _COMPLETION
if type brew &>/dev/null; then
HOMEBREW_PREFIX="$(brew --prefix)"
if [ -r "${HOMEBREW_PREFIX}/etc/profile.d/bash_completion.sh" ]; then
# shellcheck disable=SC1091
[ -r "${_COMPLETION}" ] && . "${HOMEBREW_PREFIX}/etc/profile.d/bash_completion.sh"
else
for _COMPLETION in "${HOMEBREW_PREFIX}/etc/bash_completion.d/"*; do
# shellcheck disable=SC1090
[ -r "${_COMPLETION}" ] && . "${_COMPLETION}"
done
unset _COMPLETION
fi
fi
# occasionally, bash completion scripts will have zsh completion baked into them
# as well. export FPATH to take advantage of that if it is the case.
export FPATH