summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-11-26 20:25:18 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-11-26 20:25:18 +0100
commite3dc534ec1ebf3d916d039be870597595aec68c5 (patch)
treeb6ad887b20aa82800a408e68f09da0b9b7eed905
parent23cb3fdc2c65186660d6741c1358f08d9cf8e6f4 (diff)
zshrc: Set path in a better way
-rw-r--r--etc/rc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 83a4439..b2bf7fa 100644
--- a/etc/rc
+++ b/etc/rc
@@ -90,7 +90,8 @@ if ((EUID)) {
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
+typeset -U path
+path=(~/bin $path)
# Add manuals from caretaker to manpath
if [[ $distro == debian ]] {