aboutsummaryrefslogtreecommitdiff
path: root/zshrc.dot.link
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-15 13:36:17 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-15 13:36:17 -0300
commit238e0d794bab133abb6dfefb82aee4d6e3d02003 (patch)
treeba9f019c2b3b0e8beecc7cc182ebfcc6045e06d1 /zshrc.dot.link
parent9b829c34462fecc56362a1962c778e499d730cbf (diff)
downloadprofile-238e0d794bab133abb6dfefb82aee4d6e3d02003.tar.gz
profile-238e0d794bab133abb6dfefb82aee4d6e3d02003.tar.bz2
Speed up zsh completion
Diffstat (limited to 'zshrc.dot.link')
-rw-r--r--zshrc.dot.link12
1 files changed, 12 insertions, 0 deletions
diff --git a/zshrc.dot.link b/zshrc.dot.link
index 4c7da7c..5444184 100644
--- a/zshrc.dot.link
+++ b/zshrc.dot.link
@@ -30,6 +30,7 @@ compinit
setopt auto_cd
# Completion config
+zstyle ':completion:*' accept-exact '*(N)'
zstyle ':completion:*' auto-description 'specify: %d'
zstyle ':completion:*' completer _expand _complete _correct _approximate
zstyle ':completion:*' format 'Completing %d'
@@ -50,6 +51,17 @@ zstyle ':completion:*:descriptions' format %d
zstyle ':completion:*:descriptions' format %B%d%b
zstyle ':completion:*:complete:(cd|pushd):*' tag-order 'local-directories named-directories path-directories'
+# Speeding up zsh completion
+# http://lethalman.blogspot.com/2009/10/speeding-up-zsh-completion.html
+#zstyle ':completion:*' use-cache on
+#zstyle ':completion:*' cache-path ~/.zsh/cache
+
+# Git completion
+# https://stackoverflow.com/questions/9810327/zsh-auto-completion-for-git-takes-significant-amount-of-time-can-i-turn-it-off/9810485#9810485
+__git_files () {
+ _wanted files expl 'local files' _files
+}
+
# Powerline
if [ "$TERM" != "linux" ] && [ -e '/usr/share/powerline/bindings/zsh/powerline.zsh' ]; then
. /usr/share/powerline/bindings/zsh/powerline.zsh