diff --git a/completions/xz b/completions/xz index e2e1b709..f30551c9 100644 --- a/completions/xz +++ b/completions/xz @@ -23,6 +23,10 @@ _xz() COMPREPLY=( $( compgen -W 'auto xz lzma raw' -- "$cur" ) ) return 0 ;; + -T|--threads) + COMPREPLY=( $( compgen -W "{0..$(_ncpus)}" -- "$cur" ) ) + return 0 + ;; -M|--memlimit|--memlimit-compress|--memlimit-decompress|--memory|\ -S|--suffix|--delta|--lzma1|--lzma2) # argument required but no completions available