]> arthur.barton.de Git - ax-zsh.git/blob - core/50_completion/50_completion.zshrc
020a14930bd0de56565938d800c398059ab67d7a
[ax-zsh.git] / core / 50_completion / 50_completion.zshrc
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # 50_completion.zshrc: Setup completion
3
4 autoload -Uz compinit
5
6 zstyle ':completion:*' completer _complete _ignored _correct _approximate
7
8 zstyle ':completion:*' accept-exact '*(N)'
9 zstyle ':completion:*' list-colors ''
10 zstyle ':completion:*' menu select
11 zstyle ':completion:*' special-dirs true
12 zstyle ':completion:*' group-name ''
13 zstyle ':completion:*' squeeze-slashes true
14
15 zstyle ':completion:*:descriptions' format %B%d%b
16
17 # Use caching so that commands like apt and dpkg completions are useable
18 zstyle ':completion:*' use-cache on
19 zstyle ':completion:*' cache-path "$ZSH_CACHE_DIR"
20
21 # Manual pages
22 zstyle ':completion:*:manuals.*' insert-sections true
23
24 # Don't complete uninteresting users
25 zstyle ':completion:*:*:*:users' ignored-patterns \
26         adm amanda amavis apache arpwatch at avahi avahi-autoipd \
27         beaglidx bin bind cacti canna clamav colord daapd daemon dbus \
28         distcache dnsmasq dovecot dovenull fax fetchmail firebird \
29         ftp games gdm gkrellmd gnats gopher hacluster haldaemon halt \
30         hsqldb ident irc junkbust kdm ldap libuuid libvirt-qemu list \
31         logcheck lp mail mailman mailnull man messagebus mldonkey mysql \
32         nagios named netdump news nfsnobody nobody nscd ntp nut nx \
33         obsrun oident openvpn operator pcap polkitd postfix postgres \
34         postgrey privoxy proxy pvm quagga radvd rpc rpcuser rpm rtkit \
35         rwhod sbuild scard shutdown squid sshd statd stunnel4 svn sync \
36         sys telnetd telnetd-ssl tftp usbmux uucp vcsa www-data wwwrun \
37         xfs xrdp zabbix \
38         '_*' '*$' 'debian-*' 'Debian-*'
39
40 # Ignore completion functions
41 zstyle ':completion:*:functions' ignored-patterns '_*'
42
43 # Save the location of the current completion dump file.
44 if [[ -z "$ZSH_COMPDUMP" ]]; then
45         ZSH_COMPDUMP="$ZSH_CACHE_DIR/zcompdump-${SHORT_HOST}-${ZSH_VERSION}"
46 fi
47
48 # Initialize ZSH completion system
49 compinit -d "$ZSH_COMPDUMP"