diff options
Diffstat (limited to 'user:hugues')
-rw-r--r-- | user:hugues/net:foret/KeyBindings.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
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" |