diff options
Diffstat (limited to 'bash-completion/files')
-rw-r--r-- | bash-completion/files/bash_completion.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bash-completion/files/bash_completion.sh b/bash-completion/files/bash_completion.sh index e69de29bb2..09715211c0 100644 --- a/bash-completion/files/bash_completion.sh +++ b/bash-completion/files/bash_completion.sh @@ -0,0 +1,12 @@ +# check for bash +[ -z "$BASH_VERSION" ] && return + +bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.} +if [ "$PS1" ] && [ $bmajor -eq 2 ] && [ $bminor '>' 04 ] \ + && [ -f /etc/bash_completion ]; then # interactive shell + # Source completion code + . /etc/bash_completion +fi + +unset bash bmajor bminor + |