]> arthur.barton.de Git - ax-zsh.git/blobdiff - core/50_completion/50_completion.zshrc
50_completion: Update compsys options
[ax-zsh.git] / core / 50_completion / 50_completion.zshrc
index ffb95df4ac486650f3e9e85adaf18ce71fcab44b..bcdf04fc19676f32b81eb915693b21bebb1921f2 100644 (file)
@@ -1,17 +1,21 @@
 # AX-ZSH: Alex' Modular ZSH Configuration
 # 50_completion.zshrc: Setup completion
 
-autoload -U compinit
+autoload -Uz compinit
 
 setopt completealiases
 
+zstyle ':completion:*' completer _complete _ignored _correct _approximate
+
+zstyle ':completion:*' accept-exact '*(N)'
 zstyle ':completion:*' list-colors ''
 zstyle ':completion:*' menu select
 zstyle ':completion:*' special-dirs true
+zstyle ':completion:*' squeeze-slashes true
 
 # Use caching so that commands like apt and dpkg completions are useable
-zstyle ':completion::complete:*' use-cache 1
-zstyle ':completion::complete:*' cache-path "$ZSH_CACHE_DIR"
+zstyle ':completion:*' use-cache on
+zstyle ':completion:*' cache-path "$ZSH_CACHE_DIR"
 
 # Don't complete uninteresting users
 zstyle ':completion:*:*:*:users' ignored-patterns \
@@ -29,6 +33,9 @@ zstyle ':completion:*:*:*:users' ignored-patterns \
        xfs xrdp zabbix \
        '_*' '*$' 'debian-*' 'Debian-*'
 
+# Ignore completion functions
+zstyle ':completion:*:functions' ignored-patterns '_*'
+
 # Save the location of the current completion dump file.
 if [[ -z "$ZSH_COMPDUMP" ]]; then
        ZSH_COMPDUMP="$ZSH_CACHE_DIR/zcompdump-${SHORT_HOST}-${ZSH_VERSION}"