The following commit has been merged in the master branch:
commit d6068483d2afdf1a822666539e96b7c33a2cbfe3
Author: Ville Skyttä <[email protected]>
Date:   Tue Mar 30 22:02:25 2010 +0300

    Add *.xz support to man completion.

diff --git a/CHANGES b/CHANGES
index 521a052..0340bc3 100644
--- a/CHANGES
+++ b/CHANGES
@@ -26,7 +26,7 @@ bash-completion (2.x)
   * Apply pine completion to alpine too.
   * Remove many unnecessary short option completions where long ones exist.
   * Improve chsh, chgrp, chown, configure, cvs, gkrellm, gzip, lftp, look,
-    make, mdadm, modprobe, mplayer, mysqladmin, perldoc, rsync, screen,
+    make, man, mdadm, modprobe, mplayer, mysqladmin, perldoc, rsync, screen,
     service, scp, ssh, sshfs, update-alternatives, vncviewer, yp-tools, and
     general hostname completions.
   * Add abook and wtf completion, based on work by Raphaël Droz.
diff --git a/contrib/man b/contrib/man
index ead03eb..9f2e58e 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)?(.@(gz|bz2|lzma))"
+    manext="@([0-9lnp]|[0-9][px]|man|3pm)?(.@([gx]z|bz2|lzma))"
     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...@]%.@(gz|bz2|lzma)} )
+    COMPREPLY=( ${comprep...@]%.@([gx]z|bz2|lzma)} )
     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

Reply via email to