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