- ## /etc/profile.d/bash_completion.sh as it is in Ubuntu 12.04
- # Check for interactive bash and that we haven't already been sourced.
- [ -z "$BASH_VERSION" -o -z "$PS1" -o -n "$BASH_COMPLETION" ] && return
- # Check for recent enough version of bash.
- bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
- if [ $bmajor -gt 3 ] || [ $bmajor -eq 3 -a $bminor -ge 2 ]; then
- if shopt -q progcomp && [ -r /etc/bash_completion ]; then
- # Source completion code.
- . /etc/bash_completion
- fi
- fi
- unset bash bmajor bminor
bash_completion.sh 12.04
Posted by Anonymous on Sat 14th Mar 2015 20:11
raw | new post
view followups (newest first): bash_completion.sh 14.04 by Anonymous
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.