From: Simon Ruderich Date: Mon, 12 Jan 2009 16:56:46 +0000 (+0100) Subject: Also ignore files on current line when using Git. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=c3b6dab30c7ca45350c4928d489074e2b6068aed;p=config%2Fdotfiles.git Also ignore files on current line when using Git. This makes completing files faster and easier when using a VCS. --- 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