diff options
author | David Runge <dave@sleepmap.de> | 2021-09-28 22:30:42 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2021-09-28 22:30:42 +0200 |
commit | c9b36638c8d9359c679879b72ff3ccdb61a94cfc (patch) | |
tree | 6ecfc5a5c8a5d8f45a81cc129872eecc66d298cd /.zsh.functions | |
parent | 5d42b1e82443567ecc1925a67a66076e3929782c (diff) | |
download | dotfiles-c9b36638c8d9359c679879b72ff3ccdb61a94cfc.tar.gz dotfiles-c9b36638c8d9359c679879b72ff3ccdb61a94cfc.tar.bz2 dotfiles-c9b36638c8d9359c679879b72ff3ccdb61a94cfc.tar.xz dotfiles-c9b36638c8d9359c679879b72ff3ccdb61a94cfc.zip |
zsh: Add override for git completion
.zsh.functions/overrides.zsh:
Add function to make git favor local files when doing completion.
Diffstat (limited to '.zsh.functions')
-rw-r--r-- | .zsh.functions/overrides.zsh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.zsh.functions/overrides.zsh b/.zsh.functions/overrides.zsh new file mode 100644 index 0000000..b320671 --- /dev/null +++ b/.zsh.functions/overrides.zsh @@ -0,0 +1,4 @@ +# make git auto completion faster by favoring local files +__git_files () { + _wanted files expl 'local files' _files +} |