]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: don't correct completion functions
authorSimon Ruderich <simon@ruderich.org>
Sun, 16 Mar 2014 17:36:18 +0000 (18:36 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sun, 16 Mar 2014 17:36:18 +0000 (18:36 +0100)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index 201e17c13a5ed103ffdb67e65c9e9b03e53430ea..7c5ab05db5cd114da6d20fedfec07a7456026af6 100644 (file)
--- 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