added X11R6 and local manpage dirs

This commit is contained in:
Bijan 2020-09-16 14:58:02 +04:30
parent 6eb46c9ff7
commit 7bea5a33d4

View File

@ -1,9 +1,8 @@
#: | man | man pages |
MAN_CACHE=$LOAD_PATH/cache/man
if [ ! -f $MAN_CACHE ]; then
MANPATH=/usr/share/man man -k Nm~. | cut -d\( -f1 | tr -d , | \
sort | \
uniq > $MAN_CACHE
mkdir -p `dirname ${MAN_CACHE}`
ls /usr/{share,X11R6,local}/man/man[1-9] | sort -u > $MAN_CACHE
fi
set -A complete_man_1 -- $(cat $MAN_CACHE)