File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments