Bläddra i källkod

Add zsh completion caching

Apparently this helps with `apt` and `dpkg`.
Weiyi Lou 9 år sedan
förälder
incheckning
37de8a69aa
1 ändrade filer med 4 tillägg och 0 borttagningar
  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.