]> arthur.barton.de Git - ax-zsh.git/blob - core/50_completion/50_completion.zshrc
Rework FPATH and completion system
[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 # Save the location of the current completion dump file.
17 if [[ -z "$ZSH_COMPDUMP" ]]; then
18         ZSH_COMPDUMP="${ZDOTDIR:-$HOME}/.zcompdump-${SHORT_HOST}-${ZSH_VERSION}"
19 fi
20
21 # Initialize ZSH completion system
22 compinit -d "$ZSH_COMPDUMP"