From b5344dead452d3ac876604c36f4fa1dbdad8bfd2 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Tue, 12 Jun 2012 14:42:26 +0200 Subject: dont overwrite nproc. --- user:hugues/net:foret/KeyBindings.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'user:hugues') diff --git a/user:hugues/net:foret/KeyBindings.zsh b/user:hugues/net:foret/KeyBindings.zsh index 5d88108..626ca3f 100644 --- a/user:hugues/net:foret/KeyBindings.zsh +++ b/user:hugues/net:foret/KeyBindings.zsh @@ -10,7 +10,7 @@ __nproc () { - NPROC=${${2:+"$(( $(echo $MAKEFLAGS | sed 's/.*j\([0-9]*\).*/\1/') $@))"}:-$1} + local NPROC=${${2:+"$(( $(echo $MAKEFLAGS | sed 's/.*j\([0-9]*\).*/\1/') $@))"}:-$1} export MAKEFLAGS="$(echo $MAKEFLAGS | sed 's/j[0-9]*//')" [ "$NPROC" -ge 0 ] && MAKEFLAGS+="j" -- cgit v1.2.3