]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh: Try to fix mistakes when completing.
authorSimon Ruderich <simon@ruderich.org>
Tue, 10 Mar 2009 17:13:04 +0000 (18:13 +0100)
committerSimon Ruderich <simon@ruderich.org>
Tue, 10 Mar 2009 17:13:04 +0000 (18:13 +0100)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index 858f5fc9b54dc0af76a6790bd755b3cdb49133bc..c9f516a387842bca05f08ac889bf03dd40789110 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -227,6 +227,9 @@ autoload -U compinit && compinit -d ~/.zsh/cache/zcompdump
 zstyle ':completion:*' use-cache on
 zstyle ':completion:*' cache-path ~/.zsh/cache
 
+# Complete arguments and fix spelling mistakes when possible.
+zstyle ':completion:*' completer _complete _match _correct _approximate
+
 # Make sure the list of possible completions is displayed after pressing <TAB>
 # the first time.
 setopt nolistambiguous