pigz: Add -p/--processes arg completion.
This commit is contained in:
parent
ec7fe00066
commit
cff897eda8
@ -6,7 +6,11 @@ _gzip()
|
|||||||
_init_completion || return
|
_init_completion || return
|
||||||
|
|
||||||
case $prev in
|
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
|
return 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user