]> arthur.barton.de Git - ax-zsh.git/blobdiff - default_plugins/correction/correction.zshrc
Correctly test XDG_CACHE_HOME for writability for "stamp files"
[ax-zsh.git] / default_plugins / correction / correction.zshrc
index 79b9da1239ced23770a3d1331d44848a0063120e..96d4ccad6f5267b14c54f6b12f7cc1583824e468 100644 (file)
@@ -1,30 +1,11 @@
 # AX-ZSH: Alex' Modular ZSH Configuration
 # correction.zshrc: Setup correction
 
-for cmd (
-       alias
-       apt
-       aptitude
-       brew
-       command
-       ebuild
-       echo
-       gist
-       man
-       mkdir
-       mv
-       mysql
-       pkg_add
-       print
-       printf
-       sudo
-       type
-       which
-); do
-       [[ -n $commands[$cmd] ]] \
-               && alias $cmd="nocorrect $cmd"
-done
-
 setopt correct_all
 
+# Ignore dot files, don't offer them as a correction.
+CORRECT_IGNORE_FILE='.*'
+
 SPROMPT="$ZSH_NAME: Correct \"$fg[yellow]%R$reset_color\" to \"$fg[green]%r$reset_color\" [$fg_bold[white]nyae$reset_color]? "
+
+unset cmd