Lines 2-12
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License, v2 or later |
2 |
# Distributed under the terms of the GNU General Public License, v2 or later |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/files/bash-completion,v 1.7 2004/11/12 23:44:04 ka0ttic Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/files/bash-completion,v 1.7 2004/11/12 23:44:04 ka0ttic Exp $ |
4 |
# |
4 |
# |
|
|
5 |
|
6 |
# Exit if this shell is not bash |
7 |
test -n "$BASH_VERSION" || return 0 |
8 |
|
5 |
# START bash completion -- do not remove this line |
9 |
# START bash completion -- do not remove this line |
6 |
bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.} |
10 |
bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.} |
7 |
# interactive shell |
11 |
# interactive shell |
8 |
if [ "$PS1" ]; then |
12 |
if [ "$PS1" ]; then |
9 |
if [ $bmajor -eq 2 -a $bminor '>' 04 ] || [ $bmajor -ge 3 ]; then |
13 |
if [ "$bmajor" -eq 2 -a "$bminor" -gt 04 ] || [ "$bmajor" -ge 3 ]; then |
10 |
[ -f /etc/bash_completion ] && . /etc/bash_completion |
14 |
[ -f /etc/bash_completion ] && . /etc/bash_completion |
11 |
if [ -d ~/.bash_completion.d ] ; then |
15 |
if [ -d ~/.bash_completion.d ] ; then |
12 |
for file in ~/.bash_completion.d/* ; do |
16 |
for file in ~/.bash_completion.d/* ; do |