add opannotate-asm, remove old completion stuff
[~madcoder/dotfiles.git] / config / zsh / 40_completion
1 #! /bin/zsh
2
3 zstyle ':completion:*' use-cache on
4 zstyle ':completion:*' cache-path ~/.cache/zsh/
5 zstyle ':completion:*' add-space true
6 zstyle ':completion:*' completer _expand _complete _match _prefix _approximate _list
7 zstyle ':completion:*' menu select=1
8 zstyle ':completion:*' file-sort name
9 zstyle ':completion:*' list-colors ${(s.:.)ZLS_COLORS}
10 zstyle ':completion:*' matcher-list 'r:|[._-]=** r:|=**' 'l:|=** r:|=**'
11 zstyle ':completion:*' menu select
12 zstyle ':completion:*:approximate:*' max-errors 'reply=( $(( ($#PREFIX+$#SUFFIX)/3 )) numeric )'
13
14 #[ Formats ]####################################################################
15 zstyle ':completion:*' group 1
16 zstyle ':completion:*' format '%B---- %d%b'
17 zstyle ':completion:*:corrections' format '%B---- %d (errors %e)%b'
18 zstyle ':completion:*:descriptions' format "%B---- %d%b"
19 zstyle ':completion:*:messages' format '%B%U---- %d%u%b' 
20 zstyle ':completion:*:warnings' format "%B$fg[red]%}---- no match for: $fg[white]%d%b"
21 zstyle ':completion:*' group-name ''
22
23 #[ Kill ]#######################################################################
24 zstyle ':completion:*:processes' command 'ps -au$USER -o pid,time,cmd|grep -v "ps -au$USER -o pid,time,cmd"'
25 zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)[ 0-9:]#([^ ]#)*=01;30=01;31=01;38'
26
27 #[ hosts and users ]############################################################
28 zstyle ':completion:*:hosts' list-colors '=(#b)(*)(.madism.org)=01;30=01;31' '=[^.]#=01;31'
29
30 zstyle ':completion:*' file-patterns \
31     '%p:globbed-files: *(-/):directories:Directories' '*:all-files'