diff options
author | Igor Murzov <e-mail@date.by> | 2012-03-25 17:28:42 +0400 |
---|---|---|
committer | Igor Murzov <e-mail@date.by> | 2012-03-25 18:14:10 +0400 |
commit | fb2d657fac6be93a1c4ffa76018d8042859e0a03 (patch) | |
tree | 82d6606e152b75ae22ffac9fdf9235fe55a2b335 /completions/man | |
parent | 199a63bd4db2020c8d6aaad6723cf881c023c0ff (diff) | |
download | bash-completion-fb2d657fac6be93a1c4ffa76018d8042859e0a03.tar.gz |
man: --path option is supported on Darwin (Alioth: #313584)
Diffstat (limited to 'completions/man')
-rw-r--r-- | completions/man | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/completions/man b/completions/man index a9de57c4..a14b451c 100644 --- a/completions/man +++ b/completions/man @@ -8,7 +8,7 @@ _man() local cur prev words cword split _init_completion -s -n : || return - local i sect manpath manext mansect uname + local i sect manpath manext mansect manext="@([0-9lnp]|[0-9][px]|man|3pm)?(.@([gx]z|bz2|lzma|Z))" mansect="@([0-9lnp]|[0-9][px]|3pm)" @@ -56,8 +56,7 @@ _man() return 0 fi - uname=$( uname -s ) - if [[ $uname == @(Linux|GNU|GNU/*|FreeBSD|Cygwin|CYGWIN_*) ]]; then + if [[ $OSTYPE == *@(darwin|linux|freebsd|cygwin)* ]] || _userland GNU; then manpath=$( manpath 2>/dev/null || command man --path ) else manpath=$MANPATH |