dblume commited on 2022-05-21 08:13:28
Showing 1 changed files, with 2 additions and 1 deletions.
... | ... |
@@ -7,7 +7,8 @@ if [[ $(uname -s) == Darwin* ]]; then |
7 | 7 |
if [[ -n $ITERM_PROFILE && -z $SSH_CLIENT && -f "${HOME}/tips.txt" ]]; then |
8 | 8 |
cat "${HOME}/tips.txt" |
9 | 9 |
fi |
10 |
- if [[ -f $(brew --prefix)/etc/bash_completion ]]; then |
|
10 |
+ if [[ -n $CDPATH && -f $(brew --prefix)/etc/bash_completion ]]; then |
|
11 |
+ # brew install bash-completion (for $CDPATH completion) |
|
11 | 12 |
source $(brew --prefix)/etc/bash_completion |
12 | 13 |
fi |
13 | 14 |
fi |
14 | 15 |