summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-11-23 20:14:55 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-11-23 20:14:55 +0100
commit23cb3fdc2c65186660d6741c1358f08d9cf8e6f4 (patch)
tree3d9161e57674eca1823a3a639b86b5299a3a0efd
parent06c5e2becdfd9293aa8d90d3e517ef1f03ac653c (diff)
zshrc: Use preformatted manuals where available
-rw-r--r--etc/rc9
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 240b940..83a4439 100644
--- a/etc/rc
+++ b/etc/rc
@@ -93,7 +93,14 @@ export MAKEFLAGS=j$(grep -c '^processor' /proc/cpuinfo)
[[ $path[1] = $HOME/bin ]] || export PATH=$HOME/bin:$PATH
# Add manuals from caretaker to manpath
-[[ -n $commands[manpath] && -z $MANPATH ]] && export MANPATH=$(manpath):$HOME/packages/.collected/man
+if [[ $distro == debian ]] {
+ if [[ -e ~/packages/catman ]] {
+ export MANPATH=/var/cache/man
+ } else {
+ export MANPATH=/usr/share/man
+ }
+ MANPATH+=":/usr/local/share/man:$HOME/packages/.collected/man"
+}
# }}}
# {{{ MIME parameters