zstyle ":completion:*" list-colors "" zstyle ":completion:*:functions" ignored-patterns "_*" zstyle ":completion:*:manuals" separate-sections true zstyle ":completion:*" group-name "" zstyle ":completion:*:messages" format "%d" zstyle ":completion:*:warnings" format "%F{red}no matches: %d%f" zstyle ":completion:*:*:*:*:descriptions" format "%B... %d%b" zstyle ":completion:*:files:*:*:descriptions" format "" zstyle ":completion:*" file-patterns "%p:globbed" "*" zstyle ":completion:*" matcher-list "" "m:{a-z-}={A-Z_}" "r:|?=** m:{a-z-}={A-Z_}" zstyle ":completion:*:man:*:*:*" matcher-list "" "m:{a-zA-Z}={A-Za-z} l:|=* r:|=*" zstyle ":completion:*" completer _mycomp _mycomp_man:man _parameters _ignored _mycomp () { [[ $CURRENT -eq 1 ]] && curcontext="${curcontext%:*:*}:-command-:" \ _command_names && return [[ $IPREFIX =~ ~.* ]] && _tilde && return local has_files curcontext=:files:${curcontext#:*:} _files && has_files=1 [[ $has_files ]] && return # MAGIC_EQUAL_SUBST {{{ [[ $PREFIX = *\=* ]] || return 1 compstate[parameter]=${PREFIX%%\=*} compset -P 1 "*=" _value # }}} } _mycomp_man () { [[ ${words[1]} == man ]] && curcontext=:man:${curcontext#:*:} \ _dispatch "" man man "" -default- && _value && return [[ ${words[1]} == info ]] && curcontext=:info:${curcontext#:*:} \ _dispatch "" info info "" -default- && return } autoload -U compinit ; compinit -d /tmp/.zcompdump autoload -U complist