#! /bin/zsh zstyle ':completion:*' use-cache on zstyle ':completion:*' cache-path ~/.cache/zsh/ zstyle ':completion:*' add-space true zstyle ':completion:*' completer _expand _complete _match _prefix _approximate _list zstyle ':completion:*' menu select=1 zstyle ':completion:*' file-sort name zstyle ':completion:*' list-colors ${(s.:.)ZLS_COLORS} zstyle ':completion:*' matcher-list 'r:|[._-]=** r:|=**' 'l:|=** r:|=**' zstyle ':completion:*' menu select zstyle ':completion:*:approximate:*' max-errors 'reply=( $(( ($#PREFIX+$#SUFFIX)/3 )) numeric )' #[ Formats ]#################################################################### zstyle ':completion:*' group 1 zstyle ':completion:*' format '%B---- %d%b' zstyle ':completion:*:corrections' format '%B---- %d (errors %e)%b' zstyle ':completion:*:descriptions' format "%B---- %d%b" zstyle ':completion:*:messages' format '%B%U---- %d%u%b' zstyle ':completion:*:warnings' format "%B$fg[red]%}---- no match for: $fg[white]%d%b" zstyle ':completion:*' group-name '' #[ Kill ]####################################################################### zstyle ':completion:*:processes' command 'ps -au$USER -o pid,time,cmd|grep -v "ps -au$USER -o pid,time,cmd"' zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)[ 0-9:]#([^ ]#)*=01;30=01;31=01;38' #[ hosts and users ]############################################################ zstyle ':completion:*:hosts' list-colors '=(#b)(*)(.madism.org)=01;30=01;31' '=[^.]#=01;31' zstyle ':completion:*' file-patterns \ '%p:globbed-files: *(-/):directories:Directories' '*:all-files'