]> git.rmz.io Git - dotfiles.git/blob - zsh/lib/completion.zsh
email: remove gmail and office365 accounts
[dotfiles.git] / zsh / lib / completion.zsh
1 unsetopt menu_complete # do not autoselect the first completion entry
2 unsetopt flowcontrol
3 setopt no_auto_menu # don't show completion menu on succesive tab press
4 setopt complete_in_word
5 setopt always_to_end
6
7 WORDCHARS=''
8
9 zmodload -i zsh/complist
10
11 zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
12
13 zstyle ':completion:*' list-colors ''
14
15 zstyle ':completion:*:*:*:*:*' menu select
16 zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
17 zstyle ':completion:*:*:*:*:processes' command "ps -u `whoami` -o pid,user,comm -w -w"
18
19 # disable named-directories autocompletion
20 zstyle ':completion:*:cd:*' tag-order local-directories directory-stack path-directories
21 cdpath=(.)
22
23 # Use caching so that commands like apt and dpkg complete are useable
24 zstyle ':completion::complete:*' use-cache 1
25 zstyle ':completion::complete:*' cache-path $ZSH_CACHE/complete
26
27 # Don't complete uninteresting users
28 zstyle ':completion:*:*:*:users' ignored-patterns \
29 adm amanda apache avahi beaglidx bin cacti canna clamav daemon \
30 dbus distcache dovecot fax ftp games gdm gkrellmd gopher \
31 hacluster haldaemon halt hsqldb ident junkbust ldap lp mail \
32 mailman mailnull mldonkey mysql nagios \
33 named netdump news nfsnobody nobody nscd ntp nut nx openvpn \
34 operator pcap postfix postgres privoxy pulse pvm quagga radvd \
35 rpc rpcuser rpm shutdown squid sshd sync uucp vcsa xfs
36
37 # ... unless we really want to.
38 zstyle '*' single-ignored show