Skip to content

Commit b90001b

Browse files
committed
- Setup: Fix bash completions on mac
1 parent 709153f commit b90001b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

setup

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ install_completions() {
5454
compdir="/usr/share/bash-completion/completions"
5555
elif [[ -d "/usr/local/etc/bash_completion.d" ]]; then
5656
compdir="/usr/local/etc/bash_completion.d"
57+
elif command -v brew &>/dev/null && [[ -d "$(brew --prefix)/etc/bash_completion.d" ]]; then
58+
compdir="$(brew --prefix)/etc/bash_completion.d"
5759
else
5860
compdir=''
5961
fi

test/setup_artifacts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ get_comp_dir() {
1414
echo "/usr/share/bash-completion/completions"
1515
elif [[ -d "/usr/local/etc/bash_completion.d" ]]; then
1616
echo "/usr/local/etc/bash_completion.d"
17+
elif command -v brew &> /dev/null && [[ -d "$(brew --prefix)/etc/bash_completion.d" ]]; then
18+
echo "$(brew --prefix)/etc/bash_completion.d"
1719
else
1820
echo ''
1921
fi

0 commit comments

Comments
 (0)