From 69b652b1030d5f2ae6f1478f719144dbaaf2111c Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 16 Jun 2014 11:01:01 +0200 Subject: [PATCH] add check for brew installed bash completion --- bash_profile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bash_profile b/bash_profile index eb7cc28..a6a1d40 100644 --- a/bash_profile +++ b/bash_profile @@ -39,8 +39,10 @@ shopt -s cdspell # 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" -fi + source "$(brew --prefix)/etc/bash_completion"; +elif [ -f /etc/bash_completion ]; then + source /etc/bash_completion; +fi; # Set architecture flags export ARCHFLAGS="-arch x86_64"