From c8e414f1d0b1aa3b081c43e4dbf1fea9d45cd0af Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 16 Mar 2014 18:36:18 +0100 Subject: [PATCH] zsh/rc: don't correct completion functions --- zsh/rc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/zsh/rc b/zsh/rc index 201e17c..7c5ab05 100644 --- a/zsh/rc +++ b/zsh/rc @@ -727,6 +727,14 @@ zle_highlight=(suffix:none) # Ignore completion functions. zstyle ':completion:*:functions' ignored-patterns '_*' + +# When offering typo corrections, do not propose anything which starts with an +# underscore (such as many of Zsh's shell functions). Thanks to paradigm [1] +# for the idea (read on 2013-04-07). +# +# [1]: https://github.com/paradigm/dotfiles/blob/master/.zshrc +CORRECT_IGNORE='_*' + # Ignore parent directory. zstyle ':completion:*:(cd|mv|cp):*' ignore-parents parent pwd # Always complete file names only once in the current line. This makes it easy -- 2.44.1