[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-39-g2c78ae3

Ville Skyttä ville.skytta at iki.fi
Mon Mar 21 17:46:38 UTC 2011


The following commit has been merged in the master branch:
commit 03fee4b4d3a4203d6d7d5eb04e1d4d4ffece94c2
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Mon Mar 21 19:35:30 2011 +0200

    Apply xz completion to pxz too.

diff --git a/CHANGES b/CHANGES
index d18486e..9427885 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,7 +1,7 @@
 bash-completion (2.x)
 
   [ Ville Skyttä ]
-  * Add reptyr completion.
+  * Add pxz and reptyr completions.
   * Improve aspell, gendiff, smartctl, and tar completions.
   * Try harder to find the correct perl executable to run the perl helper with.
   * Drop rpm query support for rpm < 4.1.
diff --git a/completions/xz b/completions/xz
index 89a8ac9..ec6d9b2 100644
--- a/completions/xz
+++ b/completions/xz
@@ -1,6 +1,6 @@
 # xz(1) completion
 
-have xz &&
+have xz || have pxz &&
 _xz()
 {
     COMPREPLY=()
@@ -57,7 +57,7 @@ _xz()
     COMPREPLY=( $( compgen -f -X "$xspec" -- "$cur" ) \
         $( compgen -d -- "$cur" ) )
 } &&
-complete -F _xz xz
+complete -F _xz xz pxz
 
 # xzdec(1) completion
 #

-- 
bash-completion



More information about the Bash-completion-commits mailing list