aboutsummaryrefslogtreecommitdiffstats
path: root/.bash_profile
diff options
context:
space:
mode:
authorOliver Schrenk <oliver.schrenk@gmail.com>2014-06-07 17:22:23 +0200
committerMathias Bynens <mathias@qiwi.be>2014-06-07 17:23:22 +0200
commit0a38d10ca2d2c4c83377e8ad1a75301590796f93 (patch)
tree535188231ff8a3a7c5e342c20ebe2314ab93f862 /.bash_profile
parente8e515d7fef0daf84ac79e4039449137532c69ca (diff)
downloaddotfiles-0a38d10ca2d2c4c83377e8ad1a75301590796f93.tar.gz
dotfiles-0a38d10ca2d2c4c83377e8ad1a75301590796f93.tar.bz2
dotfiles-0a38d10ca2d2c4c83377e8ad1a75301590796f93.zip
.bash_profile: Enable Bash completion if `/etc/bash_completion` exists too
This is useful on Linux. Ref. #278.
Diffstat (limited to '.bash_profile')
-rw-r--r--.bash_profile2
1 files changed, 2 insertions, 0 deletions
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`