X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=default_plugins%2Fcorrection%2Fcorrection.zshrc;h=96d4ccad6f5267b14c54f6b12f7cc1583824e468;hb=HEAD;hp=79b9da1239ced23770a3d1331d44848a0063120e;hpb=49441735bdf56dc0600ad2f71dbde753ff7f0585;p=ax-zsh.git diff --git a/default_plugins/correction/correction.zshrc b/default_plugins/correction/correction.zshrc index 79b9da1..96d4cca 100644 --- a/default_plugins/correction/correction.zshrc +++ b/default_plugins/correction/correction.zshrc @@ -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