Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ install_completions() {
compdir="/usr/share/bash-completion/completions"
elif [[ -d "/usr/local/etc/bash_completion.d" ]]; then
compdir="/usr/local/etc/bash_completion.d"
elif command -v brew &>/dev/null && [[ -d "$(brew --prefix)/etc/bash_completion.d" ]]; then
compdir="$(brew --prefix)/etc/bash_completion.d"
else
compdir=''
fi
Expand Down
2 changes: 2 additions & 0 deletions test/setup_artifacts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ get_comp_dir() {
echo "/usr/share/bash-completion/completions"
elif [[ -d "/usr/local/etc/bash_completion.d" ]]; then
echo "/usr/local/etc/bash_completion.d"
elif command -v brew &> /dev/null && [[ -d "$(brew --prefix)/etc/bash_completion.d" ]]; then
echo "$(brew --prefix)/etc/bash_completion.d"
else
echo ''
fi
Expand Down