From c9b36638c8d9359c679879b72ff3ccdb61a94cfc Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 28 Sep 2021 22:30:42 +0200 Subject: zsh: Add override for git completion .zsh.functions/overrides.zsh: Add function to make git favor local files when doing completion. --- .zsh.functions/overrides.zsh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .zsh.functions/overrides.zsh (limited to '.zsh.functions') 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 +} -- cgit v1.2.3-54-g00ecf