[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.90-40-gc73cf42

Ville Skyttä ville.skytta at iki.fi
Fri Nov 11 19:01:45 UTC 2011


The following commit has been merged in the master branch:
commit c73cf422bd709c3c5ae90b2d8237758a681f1d00
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Fri Nov 11 21:01:06 2011 +0200

    make -j: Complete up to number of CPUs * 2.

diff --git a/completions/make b/completions/make
index 32fad16..399c4b0 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

-- 
bash-completion



More information about the Bash-completion-commits mailing list