From 0202ac4e2a5dcd8ccfa2cf38e89c79112dbef6b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Wed, 9 Nov 2011 18:35:37 +0200 Subject: [PATCH] cppcheck -j: Use _ncpus. --- completions/cppcheck | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completions/cppcheck b/completions/cppcheck index dc321398..465f40d2 100644 --- a/completions/cppcheck +++ b/completions/cppcheck @@ -28,7 +28,7 @@ _cppcheck() return ;; -j) - COMPREPLY=( $( compgen -W '{2..16}' -- "$cur" ) ) + COMPREPLY=( $( compgen -W "{2..$(_ncpus)}" -- "$cur" ) ) return ;; --std)