From 7bea5a33d4834b590aad185969a034d5f4c31db0 Mon Sep 17 00:00:00 2001 From: Bijan Date: Wed, 16 Sep 2020 14:58:02 +0430 Subject: [PATCH] added X11R6 and local manpage dirs --- completions/man.ksh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/completions/man.ksh b/completions/man.ksh index 62c2d54..182a4bd 100755 --- a/completions/man.ksh +++ b/completions/man.ksh @@ -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)