summaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-06-05 14:37:07 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-06-05 14:37:07 +0200
commitc68acbae9cc7da754349d869047814ecaa1ff3d7 (patch)
treeff0d83b8c456a8126e70e3f1f9f17144dd74a1c7 /etc/rc
parent747a0de1eb807ac46c1955d7fe022b3ac629e86c (diff)
etc/rc: Only create manpath if it doesn't exist
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index b436748..15337e6 100644
--- a/etc/rc
+++ b/etc/rc
@@ -23,7 +23,7 @@ export MPD_HOST=saviour
[ $uname = Linux ] && export LANG=en_US.UTF-8
[ $uname = OpenBSD ] && export PKG_PATH="ftp://ftp.freenet.de/pub/ftp.openbsd.org/pub/OpenBSD/`uname -r`/packages/`machine -a`/:ftp://openbsd.ftp.fu-berlin.de/pub/OpenBSD/`uname -r`/packages/`machine -a`/"
export HOST
-[ $uname = Linux ] && export MANPATH=$(manpath):$HOME/packages/.collected/man
+[ $uname = Linux -a -z "$MANPATH" ] && export MANPATH=$(manpath):$HOME/packages/.collected/man
# Fancy directory colors
[ $uname = Linux ] && eval $(dircolors -b $HOME/packages/zsh/etc/dircolors)