소스 검색

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.