Bash completion on macOS for CDPATH
dblume

dblume commited on 2022-05-20 22:56:54
Showing 1 changed files, with 6 additions and 2 deletions.

... ...
@@ -3,7 +3,11 @@
3 3
 if [ -f "${HOME}/.bashrc" ]; then
4 4
     source "${HOME}/.bashrc"
5 5
 fi
6
-if [[ -n $ITERM_PROFILE && -z $SSH_CLIENT &&
7
-    $(uname -s) == Darwin* && -f "${HOME}/tips.txt" ]]; then
6
+if [[ $(uname -s) == Darwin* ]]; then
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
11
+        source $(brew --prefix)/etc/bash_completion
12
+    fi
13
+fi
10 14