diff --git a/bash_completion b/bash_completion index 2733713d..2f790ff9 100644 --- a/bash_completion +++ b/bash_completion @@ -2,7 +2,7 @@ # # # @@ -42,10 +42,10 @@ complete -f cat less more ln strip # the following section lists completions that are redefined later # START exclude -- do NOT remove this line -complete -f -X '*.bz2' bzip2 +#complete -f -X '*.bz2' bzip2 complete -f -X '!*.bz2' bunzip2 complete -f -X '!*.+(zip|ZIP|jar|JAR)' unzip -complete -f -X '*.gz' gzip +#complete -f -X '*.gz' gzip complete -f -X '*.Z' compress complete -f -X '!*.+(Z|gz|tgz|Gz)' gunzip zcat zmore complete -f -X '!*.Z' uncompress @@ -1605,6 +1605,8 @@ list=( $( sed -ne '/^# START exclude/,/^# FINISH exclude/p' \ ( while read line do + # ignore compspecs that are commented out + if [ "${line#\#}" != "$line" ]; then continue; fi line=${line%# START exclude*} line=${line%# FINISH exclude*} line=${line##*\'}