about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-17 15:20:22 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-17 15:20:22 +0000
commit413c790f25992f7c309f7345ef4cdd1a5fa57dc9 (patch)
treedf79d32491110b33701096f8ac4769a8944c2108
parent7de85ba799849961dfa3ac73198394cfc75bc97d (diff)
downloadzsh-413c790f25992f7c309f7345ef4cdd1a5fa57dc9.tar.gz
zsh-413c790f25992f7c309f7345ef4cdd1a5fa57dc9.tar.xz
zsh-413c790f25992f7c309f7345ef4cdd1a5fa57dc9.zip
manual/7919
-rw-r--r--Completion/User/_man3
1 files changed, 3 insertions, 0 deletions
diff --git a/Completion/User/_man b/Completion/User/_man
index 1061d309e..ffdac91cd 100644
--- a/Completion/User/_man
+++ b/Completion/User/_man
@@ -16,6 +16,9 @@ fi
 
 # `sman' is the SGML manual directory for Solaris 7.
 
+[ "$manpath" ] || manpath=$(manpath 2>/dev/null) || \
+  manpath=( /usr/man(-/N) /(opt|usr)/(dt|share|X11R6|local)/(cat|)man(-/N) )
+
 if [[ $words[2] = (<->*|ln) ]]; then
   rep=(
   $manpath/(sman|man|cat)${words[2]}/${~approx}$PREFIX${~star}$SUFFIX.<->*(N:t) )