Add option to disable git's smart but slow file completion
This commit is contained in:
parent
3e5e108eaa
commit
6de94b87fe
1 changed files with 8 additions and 0 deletions
|
@ -15,3 +15,11 @@ fi
|
|||
# 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
|
||||
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…
Add table
Reference in a new issue