]> arthur.barton.de Git - ax-zsh.git/blob - default_plugins/correction/correction.zshrc
correction: Enhance correction prompt with colors
[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         apt
6         aptitude
7         brew
8         ebuild
9         gist
10         man
11         mkdir
12         mv
13         mysql
14         pkg_add
15         sudo
16 ); do
17         [[ -n $commands[$cmd] ]] \
18                 && alias $cmd="nocorrect $cmd"
19 done
20
21 setopt correct_all
22
23 SPROMPT="$ZSH_NAME: Correct \"$fg[yellow]%R$reset_color\" to \"$fg[green]%r$reset_color\" [$fg_bold[white]nyae$reset_color]? "