From c73cf422bd709c3c5ae90b2d8237758a681f1d00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Fri, 11 Nov 2011 21:01:06 +0200 Subject: [PATCH] make -j: Complete up to number of CPUs * 2. --- completions/make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completions/make b/completions/make index 32fad165..399c4b00 100644 --- a/completions/make +++ b/completions/make @@ -25,7 +25,7 @@ _make() return 0 ;; --jobs|-j) - COMPREPLY=( $( compgen -W "{1..$(_ncpus)}" -- "$cur" ) ) + COMPREPLY=( $( compgen -W "{1..$(( $(_ncpus)*2 ))}" -- "$cur" ) ) return 0 ;; esac