From 1d6664ec420ff19dae837def525f1b7af1cef8f6 Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Fri, 10 Apr 2015 18:07:39 +0200 Subject: brew.sh: Use bash-completion2 for improved Bash 4 completion Hat tip: @elyscape in https://github.com/mathiasbynens/dotfiles/commit/91be10dcee350465566a48cbe303686d2d989d6d#commitcomment-10654929. --- .bash_profile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.bash_profile') diff --git a/.bash_profile b/.bash_profile index daa7552..4db6384 100644 --- a/.bash_profile +++ b/.bash_profile @@ -26,8 +26,8 @@ for option in autocd globstar; do done; # Add tab completion for many Bash commands -if which brew > /dev/null && [ -f "$(brew --prefix)/etc/bash_completion" ]; then - source "$(brew --prefix)/etc/bash_completion"; +if which brew > /dev/null && [ -f "$(brew --prefix)/share/bash-completion/bash_completion" ]; then + source "$(brew --prefix)/share/bash-completion/bash_completion"; elif [ -f /etc/bash_completion ]; then source /etc/bash_completion; fi; -- cgit v1.2.3