From 0a38d10ca2d2c4c83377e8ad1a75301590796f93 Mon Sep 17 00:00:00 2001 From: Oliver Schrenk Date: Sat, 7 Jun 2014 17:22:23 +0200 Subject: .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(+) (limited to '.bash_profile') diff --git a/.bash_profile b/.bash_profile index dbc60d3..3f824a0 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` -- cgit v1.2.3