]> arthur.barton.de Git - ax-zsh.git/blob - default_plugins/correction/correction.zshrc
79b9da1239ced23770a3d1331d44848a0063120e
[ax-zsh.git] / default_plugins / correction / correction.zshrc
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # correction.zshrc: Setup correction
3
4 for cmd (
5         alias
6         apt
7         aptitude
8         brew
9         command
10         ebuild
11         echo
12         gist
13         man
14         mkdir
15         mv
16         mysql
17         pkg_add
18         print
19         printf
20         sudo
21         type
22         which
23 ); do
24         [[ -n $commands[$cmd] ]] \
25                 && alias $cmd="nocorrect $cmd"
26 done
27
28 setopt correct_all
29
30 SPROMPT="$ZSH_NAME: Correct \"$fg[yellow]%R$reset_color\" to \"$fg[green]%r$reset_color\" [$fg_bold[white]nyae$reset_color]? "