summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-27 17:41:30 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-27 17:41:30 +0100
commit2e855f2af068f9dc540b9af3950974a78d57d713 (patch)
tree3b7abf6e7243c382da84aad3f62b66709b6133f7
parent8c501e7629d7415ad1ecb020b99b7c8abfe84d4f (diff)
Set MAKEFLAGS in parameters
-rw-r--r--etc/parameters2
-rw-r--r--hooks/post-update4
2 files changed, 2 insertions, 4 deletions
diff --git a/etc/parameters b/etc/parameters
index 95d22d4..87979d9 100644
--- a/etc/parameters
+++ b/etc/parameters
@@ -28,6 +28,8 @@ TIMEFMT='%J (%P) - %*E real, %*U user, %*S system'
# completion cache for compinit
compdump=$ZCACHEDIR/compdump
+export MAKEFLAGS=j$(grep -c '^processor' /proc/cpuinfo)
+
# Add my own executables, if they're not already in the path
[[ $path[1] = $HOME/bin ]] || export PATH=$HOME/bin:$PATH
diff --git a/hooks/post-update b/hooks/post-update
index 5423e06..3ace773 100644
--- a/hooks/post-update
+++ b/hooks/post-update
@@ -23,10 +23,6 @@ for snippet in $PDIR/*/provides/zsh/*(.N); {
echo "source ${snippet/$HOME/\$HOME}" >> $PDIR/zsh/provided/includes
}
-# A machine rarely gets a new CPU, so why not do this here...
-echo export MAKEFLAGS=\
-\"j$(grep -c '^processor' /proc/cpuinfo)\" >> $PDIR/zsh/provided/env
-
cd $PDIR/zsh/etc
zcompile functions.zwc functions/*
zcompile completions.zwc completions/*