From 5dba3608aca043adfcca608cb8e54b4204f77d46 Mon Sep 17 00:00:00 2001 From: Oliver Schrenk Date: Sat, 7 Jun 2014 17:22:23 +0200 Subject: [PATCH] .bash_profile: Enable Bash completion if `/etc/bash_completion` exists too This is useful on Linux. Ref. #278. --- .bash_profile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bash_profile b/.bash_profile index 60278f6c158..7f64e0dc9b8 100644 --- a/.bash_profile +++ b/.bash_profile @@ -28,6 +28,8 @@ 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"; +elif [ -f /etc/bash_completion ]; then + source /etc/bash_completion; fi; # Enable tab completion for `g` by marking it as an alias for `git`