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