[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.90-143-gcff897e
Ville Skyttä
ville.skytta at iki.fi
Mon Feb 6 21:51:28 UTC 2012
The following commit has been merged in the master branch:
commit cff897eda8886c93b5b8c0e939588af36983a5f4
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Mon Feb 6 23:51:17 2012 +0200
pigz: Add -p/--processes arg completion.
diff --git a/completions/gzip b/completions/gzip
index 8721963..35e5f23 100644
--- a/completions/gzip
+++ b/completions/gzip
@@ -6,7 +6,11 @@ _gzip()
_init_completion || return
case $prev in
- -b|--blocksize|-p|--processes|-S|--suffix|-h|--help|-V|--version)
+ -b|--blocksize|-S|--suffix|-h|--help|-V|--version)
+ return 0
+ ;;
+ -p|--processes)
+ COMPREPLY=( $( compgen -W "{1..$(_ncpus)}" -- "$cur" ) )
return 0
;;
esac
--
bash-completion
More information about the Bash-completion-commits
mailing list