Don't set MANPATH
All of this looks very obsolete, so I guess it's better to just rely on man defaults.
This commit is contained in:
parent
e65664fdf2
commit
a72bbeda6b
28
.zshenv
28
.zshenv
|
@ -69,34 +69,6 @@ then
|
|||
unsetopt NULL_GLOB
|
||||
fi
|
||||
|
||||
if [ -r /etc/MANPATH ]
|
||||
then
|
||||
MANPATH=`cat /etc/MANPATH`:$MANPATH
|
||||
else
|
||||
ALL_PATH=/usr/local/qmail/man:/usr/man:/usr/local/man:/usr/X11R6/man:/usr/share/man:/usr/local/pgsql/man:/var/qmail/man:/usr/local/rrdtool-1.0.35/man
|
||||
NEW_PATH=""
|
||||
|
||||
for i in ${(s/:/)ALL_PATH}
|
||||
do
|
||||
if test -d "$i"
|
||||
then
|
||||
case "$NEW_PATH" in
|
||||
$i:*|*:$i|*:$i:*) ;;
|
||||
*)
|
||||
if test -z "$NEW_PATH"
|
||||
then
|
||||
NEW_PATH=$i
|
||||
else
|
||||
NEW_PATH=$NEW_PATH:$i
|
||||
fi
|
||||
esac
|
||||
fi
|
||||
done
|
||||
MANPATH=$NEW_PATH
|
||||
fi
|
||||
export MANPATH
|
||||
|
||||
|
||||
case "`uname -sr`" in
|
||||
Linux*)
|
||||
export LC_COLLATE=POSIX
|
||||
|
|
Loading…
Reference in New Issue