From c3b6dab30c7ca45350c4928d489074e2b6068aed Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 12 Jan 2009 17:56:46 +0100 Subject: [PATCH] Also ignore files on current line when using Git. This makes completing files faster and easier when using a VCS. --- zsh/rc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zsh/rc b/zsh/rc index b28757e..f3bebe8 100644 --- a/zsh/rc +++ b/zsh/rc @@ -123,8 +123,9 @@ zstyle ':completion:*' list-prompt '%p' # When unsetting variables make sure every variable name is only suggested # once. zstyle ':completion:*:unset:*' ignore-line yes -# When working with mercurial don't complete the same file multiple times. -zstyle ':completion:*:hg*:*' ignore-line yes +# When working with Mercurial and Git don't complete the same file multiple +# times. Very useful when completing file names. +zstyle ':completion:*:(hg|git)*:*' ignore-line yes # ALIAS AND FUNCTION SETTINGS -- 2.45.2