diff --git a/custompkg/root/etc/skel/Library/profile.d/900.homebrew-completion.sh b/custompkg/root/etc/skel/Library/profile.d/900.homebrew-completion.sh index 569153a..e3aa427 100644 --- a/custompkg/root/etc/skel/Library/profile.d/900.homebrew-completion.sh +++ b/custompkg/root/etc/skel/Library/profile.d/900.homebrew-completion.sh @@ -1,3 +1,5 @@ -if [ -f $(brew --prefix)/etc/bash_completion ]; then - source $(brew --prefix)/etc/bash_completion -fi +if which brew 2>&1 >/dev/null ; then + if [ -f $(brew --prefix)/etc/bash_completion ]; then + source $(brew --prefix)/etc/bash_completion + fi +fi \ No newline at end of file