The following commit has been merged in the master branch:
commit b8267d131e977e40352decaecdf8f9f77fac7f2b
Author: Ville Skyttä <[email protected]>
Date: Tue Mar 30 22:04:07 2010 +0300
Add *.Z support to man completion.
diff --git a/contrib/man b/contrib/man
index 9f2e58e..c1da66a 100644
--- a/contrib/man
+++ b/contrib/man
@@ -7,7 +7,7 @@ _man()
{
local cur i prev sect manpath manext mansect uname
- manext="@([0-9lnp]|[0-9][px]|man|3pm)?(.@([gx]z|bz2|lzma))"
+ manext="@([0-9lnp]|[0-9][px]|man|3pm)?(.@([gx]z|bz2|lzma|Z))"
mansect="@([0-9lnp]|[0-9][px]|3pm)"
COMPREPLY=()
@@ -54,7 +54,7 @@ _man()
# weed out directory path names and paths to man pages
COMPREPLY=( ${comprep...@]##*/?(:)} )
# strip suffix from man pages
- COMPREPLY=( ${comprep...@]%.@([gx]z|bz2|lzma)} )
+ COMPREPLY=( ${comprep...@]%.@([gx]z|bz2|lzma|Z)} )
COMPREPLY=( $( compgen -W '${comprep...@]%.*}' -- "${cur//\\\\/}" ) )
if [[ "$prev" != $mansect ]]; then
--
bash-completion
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits