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