Support .xz suffix in info page completions.

This commit is contained in:
Ville Skyttä 2009-09-21 00:47:03 +03:00
parent d13d73345e
commit 7e3c9af115
2 changed files with 2 additions and 1 deletions

View File

@ -121,6 +121,7 @@ bash-completion (1.x)
* Don't hardcode path to lsmod.
* Fix sbcl file/dirname completion (Debian: #545743).
* Add /sbin to $PATH when invoking lspci and lsusb.
* Support .xz suffix in info page completions.
[ Todd Zullinger ]
* Make yum complete on filenames after install, deplist, update and upgrade

View File

@ -45,7 +45,7 @@ _info()
fi;
done
# strip suffix from info pages
COMPREPLY=( ${COMPREPLY[@]%.@(gz|bz2|lzma)} )
COMPREPLY=( ${COMPREPLY[@]%.@(gz|bz2|xz|lzma)} )
COMPREPLY=( $( compgen -W '${COMPREPLY[@]%.*}' -- "${cur//\\\\/}" ) )
return 0