# Add manual directories to to your MANPATH environment
MANPATH=$MANPATH:`perl -le 'print join ":",grep{s/bin$/man/&&-d} split /:/,$ENV{PATH}'`
#
# uniqify PATH and MANPATH
#
PATH=`perl -le 'print join(":", grep {! $t{$_}++} split(/:/,$ENV{PATH}))'`
MANPATH=`perl -le 'print join(":", grep {! $t{$_}++} split(/:/,$ENV{MANPATH}))'`
typeset -U PATH