Parse pigz options from pigz, not gzip, option completion improvements.
This commit is contained in:
parent
08e746ea10
commit
0b6baead5c
6
CHANGES
6
CHANGES
@ -25,9 +25,9 @@ bash-completion (2.x)
|
||||
* Apply cardctl completion to pccardctl too.
|
||||
* Apply pine completion to alpine too.
|
||||
* Remove many unnecessary short option completions where long ones exist.
|
||||
* Improve chsh, configure, cvs, gkrellm, lftp, look, mdadm, modprobe, mplayer,
|
||||
mysqladmin, rsync, screen, service, scp, ssh, sshfs, update-alternatives,
|
||||
vncviewer, yp-tools, and general hostname completions.
|
||||
* Improve chsh, configure, cvs, gkrellm, gzip, lftp, look, mdadm, modprobe,
|
||||
mplayer, mysqladmin, 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.
|
||||
* Add cvsps, dragon, fusermount, jarsigner, k3b, lftpget, pm-utils, rtcwake,
|
||||
pack200, unpack200, pbzip2, pbunzip2, pbzcat, pigz and unpigz completions.
|
||||
|
11
contrib/gzip
11
contrib/gzip
@ -8,10 +8,17 @@ _gzip()
|
||||
COMPREPLY=()
|
||||
cur=`_get_cword`
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
helpopts=`_parse_help gzip`
|
||||
helpopts=`_parse_help ${COMP_WORDS[0]}`
|
||||
|
||||
case $prev in
|
||||
-b|--blocksize|-p|--processes|-S|--suffix|-h|--help|-V|--version)
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W "$helpopts -2 -3 -4 -5 -6 -7 -8" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "$helpopts -1 -2 -3 -4 -5 -6 -7 -8 -9" \
|
||||
-- "$cur" ) )
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user