## vim:ft=zsh zstyle :compinstall filename ~/.zshrc zstyle ':completion:*' cache-path ~/var/cache/zsh zstyle ':completion:*' use-cache true check_com -c dircolors && zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} # Mark the current selection when tabbing through possible completions zstyle ':completion:*' menu select=1 # Complete uppercase names with lowercase and spaces with _ zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z} m:_=\\\ ' '' # Be verbose char=${ps_yellow}$(zchar compdelim)${ps_reset} zstyle ':completion:*' verbose true zstyle ':completion:*:descriptions' format \ "$char %d $char" zstyle ':completion:*:messages' format \ "$char %d $char" zstyle ':completion:*:corrections' format \ "$char %d $char" zstyle ':completion:*:warnings' format \ "${ps_red}no match:${ps_reset} %d" zstyle ':completion:*' group-name '' unset char # program-specific settings zstyle ':completion:*:*:kill:*' menu yes zstyle ':completion:*:*:(todo|td*):*:items' menu yes function _hosts { typeset expl _wanted host expl 'host name' \ compadd ${(k)hosts} } if [[ -r $compdump ]] { compinit -C -d $compdump } else { echo -n "Creating completion cache..." compinit -d $compdump echo }