1
0
Fork 0

Add option to disable git's smart but slow file completion

pull/340/head
huyz 12 years ago
parent 3e5e108eaa
commit 6de94b87fe

@ -15,3 +15,11 @@ fi
# huy: display non-success exit value for every command # huy: display non-success exit value for every command
# This cannot be put in a module as it's always scoped to the enclosing function # This cannot be put in a module as it's always scoped to the enclosing function
setopt printexitvalue setopt printexitvalue
# Speed up git if requested by user
if ! zstyle -b ':huy:system' git-smart-file-complete 'dummy'; then
# http://talkings.org/post/5236392664/zsh-and-slow-git-completion
__git_files () {
_wanted files expl 'local files' _files
}
fi

Loading…
Cancel
Save