mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-17 02:51:01 +02:00
zsh-workers/8062
This commit is contained in:
parent
7718446be8
commit
f94eb407c4
1 changed files with 8 additions and 2 deletions
|
@ -14,12 +14,18 @@ if [[ -n $_comp_correct ]]; then
|
|||
approx="(#a${_comp_correct})"
|
||||
fi
|
||||
|
||||
(( $#manpath )) || manpath=$(manpath 2>/dev/null) ||
|
||||
if (( ! $#manpath )); then
|
||||
local mp=$(manpath 2>/dev/null)
|
||||
[[ "$mp" == *:* ]] && mp=( ${(s.:.)mp} )
|
||||
manpath=( $mp )
|
||||
fi
|
||||
|
||||
(( $#manpath )) ||
|
||||
manpath=( /usr/man(-/N) /(opt|usr)/(dt|share|X11R6|local)/(cat|)man(-/N) )
|
||||
|
||||
# `sman' is the SGML manual directory for Solaris 7.
|
||||
|
||||
if [[ $words[2] = (<->*|ln) ]]; then
|
||||
if [[ $words[2] = (<->*|l|n) ]]; then
|
||||
rep=(
|
||||
$manpath/(sman|man|cat)${words[2]}/${~approx}$PREFIX${~star}$SUFFIX.<->*(N:t) )
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue