From 1870931657239216f097193281d52014d34fa903 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sun, 31 May 2020 14:23:03 +0300 Subject: [PATCH] Complete man pages --- zsh/.zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 4aa6a4f..0756acc 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -152,7 +152,8 @@ alias zc="zcalc" zstyle ":completion:*:functions" ignored-patterns "_*" zstyle ":completion:*" matcher-list "" 'm:{a-z\-}={A-Z\_}' 'r:|?=** m:{a-z\-}={A-Z\_}' _mycomp () { - [ $CURRENT -eq 1 ] && _command_names || _files && return 0 + [ "$words[1]" != "man" ] || { _man && return 0 } + [ $CURRENT -eq 1 ] && _command_names || _files && return 0 # MAGIC_EQUAL_SUBST {{{ [[ "$PREFIX" = *\=* ]] || return 1 compstate[parameter]="${PREFIX%%\=*}" -- 2.44.0