Skip to content

Commit

Permalink
.bash_profile: Enable Bash completion if /etc/bash_completion exist…
Browse files Browse the repository at this point in the history
…s too

This is useful on Linux.

Ref. mathiasbynens#278.
  • Loading branch information
oschrenk authored and ifdattic committed Jun 23, 2014
1 parent 2c1fa48 commit 5dba360
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .bash_profile
Expand Up @@ -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`
Expand Down

0 comments on commit 5dba360

Please sign in to comment.