[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2.0-14-g9f0a6e4

Ville Skyttä ville.skytta at iki.fi
Fri Jul 13 16:42:47 UTC 2012


The following commit has been merged in the master branch:
commit fc107b4bdc5a42302b6316ab80755d6cca69d9ba
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Fri Jul 13 19:40:21 2012 +0300

    clzip, pdlzip, plzip: New lzip alias completions.

diff --git a/completions/.gitignore b/completions/.gitignore
index 8eacc9c..6f74562 100644
--- a/completions/.gitignore
+++ b/completions/.gitignore
@@ -18,6 +18,7 @@ ci
 ciptool
 civclient
 civserver
+clzip
 co
 compare
 compgen
@@ -92,6 +93,7 @@ muttng
 ncal
 pbzip2
 pccardctl
+pdlzip
 perldoc
 phing
 pigz
@@ -100,6 +102,7 @@ ping6
 pkg_deinstall
 pkg_info
 pkill
+plzip
 pm-suspend
 pm-suspend-hybrid
 pmake
diff --git a/completions/Makefile.am b/completions/Makefile.am
index 81c5e53..b6895d2 100644
--- a/completions/Makefile.am
+++ b/completions/Makefile.am
@@ -376,6 +376,7 @@ CLEANFILES = \
 	ciptool \
 	civclient \
 	civserver \
+	clzip \
 	co \
 	compare \
 	compgen \
@@ -450,6 +451,7 @@ CLEANFILES = \
 	ncal \
 	pbzip2 \
 	pccardctl \
+	pdlzip \
 	perldoc \
 	phing \
 	pigz \
@@ -458,6 +460,7 @@ CLEANFILES = \
 	pkg_deinstall \
 	pkg_info \
 	pkill \
+	plzip \
 	pm-suspend \
 	pm-suspend-hybrid \
 	pmake \
@@ -676,6 +679,10 @@ symlinks: $(targetdir)
 		rm -f $(targetdir)/$$file && \
 			$(LN_S) lvm $(targetdir)/$$file ; \
 	done
+	for file in clzip pdlzip plzip ; do \
+		rm -f $(targetdir)/$$file && \
+			$(LN_S) lzip $(targetdir)/$$file ; \
+	done
 	for file in gmake gnumake pmake ; do \
 		rm -f $(targetdir)/$$file && \
 			$(LN_S) make $(targetdir)/$$file ; \
diff --git a/completions/lzip b/completions/lzip
index 9df5538..7f613be 100644
--- a/completions/lzip
+++ b/completions/lzip
@@ -9,12 +9,16 @@ _lzip()
 
     case $prev in
         -h|--help|-V|--version|-b|--member-size|-m|--match-length|\
-        -s|--dictionary-size|-S|--volume-size)
+        -s|--dictionary-size|-S|--volume-size|-B|--data-size)
             return
             ;;
         -d|--decompress)
             decompress=true
             ;;
+        -n|--threads)
+            COMPREPLY=( $( compgen -W "{1..$(_ncpus)}" -- "$cur" ) )
+            return
+            ;;
         -o|--output)
             _filedir
             return
@@ -39,6 +43,6 @@ _lzip()
     COMPREPLY=( $( compgen -f -X "*.lz" -- "$cur" ) \
         $( compgen -d -- "$cur" ) )
 } &&
-complete -F _lzip lzip
+complete -F _lzip clzip lzip pdlzip plzip
 
 # ex: ts=4 sw=4 et filetype=sh

-- 
bash-completion



More information about the Bash-completion-commits mailing list