Skip to content

Commit

Permalink
Merge pull request #79 from DannyBen/fix/mac-ci
Browse files Browse the repository at this point in the history
Setup: Fix bash completions on mac
  • Loading branch information
DannyBen authored Jun 20, 2024
2 parents 709153f + b90001b commit afb422a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
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

0 comments on commit afb422a

Please sign in to comment.