Explorar o código

Add zsh completion caching

Apparently this helps with `apt` and `dpkg`.
Weiyi Lou %!s(int64=9) %!d(string=hai) anos
pai
achega
37de8a69aa
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      shell/zsh/completion.zsh

+ 4 - 0
shell/zsh/completion.zsh

@@ -44,6 +44,10 @@ zstyle ':completion:*' menu select
 zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
 
 
+# Use caching so that commands like apt and dpkg complete are useable.
+zstyle ':completion::complete:*' use-cache on
+
+
 # Completion Waiting Dots.
 expand-or-complete-with-dots() {
   # Toggle line-wrapping off and back on again.