diff options
Diffstat (limited to 'profile.dot.link')
-rw-r--r-- | profile.dot.link | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/profile.dot.link b/profile.dot.link index 40f41d2..57afb93 100644 --- a/profile.dot.link +++ b/profile.dot.link @@ -101,11 +101,13 @@ export GIT_PS1_SHOWUNTRACKEDFILES="" # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). -if ! shopt -oq posix; then - if [ -f /usr/share/bash-completion/bash_completion ]; then - . /usr/share/bash-completion/bash_completion - elif [ -f /etc/bash_completion ]; then - . /etc/bash_completion +if [ ! -z "$BASH" ]; then + if ! shopt -oq posix; then + if [ -f /usr/share/bash-completion/bash_completion ]; then + . /usr/share/bash-completion/bash_completion + elif [ -f /etc/bash_completion ]; then + . /etc/bash_completion + fi fi fi |