summaryrefslogtreecommitdiff
path: root/completions/lrzip
diff options
context:
space:
mode:
Diffstat (limited to 'completions/lrzip')
-rw-r--r--completions/lrzip9
1 files changed, 1 insertions, 8 deletions
diff --git a/completions/lrzip b/completions/lrzip
index 1569dab4..d4106fb2 100644
--- a/completions/lrzip
+++ b/completions/lrzip
@@ -26,19 +26,12 @@ _lrzip()
COMPREPLY=( $( compgen -W '{1..9}' -- "$cur" ) )
return 0
;;
- -T)
- COMPREPLY=( $( compgen -W '{1..10}' -- "$cur" ) )
- return 0
- ;;
-N)
COMPREPLY=( $( compgen -W '{-20..19}' -- "$cur" ) )
return 0
;;
-p)
- local var=NPROCESSORS_ONLN
- [[ $OSTYPE == *linux* ]] && var=_$var
- local n=$( getconf $var 2>/dev/null )
- COMPREPLY=( $( compgen -W "{1..${n:-1}}" -- "$cur" ) )
+ COMPREPLY=( $( compgen -W "{1..$(_ncpus)}" -- "$cur" ) )
return 0
;;
esac