瀏覽代碼

Add zsh completion caching

Apparently this helps with `apt` and `dpkg`.
Weiyi Lou 9 年之前
父節點
當前提交
37de8a69aa
共有 1 個文件被更改,包括 4 次插入0 次删除
  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.