From: Simon Ruderich Date: Sun, 16 Mar 2014 17:36:18 +0000 (+0100) Subject: zsh/rc: don't correct completion functions X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=c8e414f1d0b1aa3b081c43e4dbf1fea9d45cd0af;p=config%2Fdotfiles.git zsh/rc: don't correct completion functions --- 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