Make correction work

This commit is contained in:
Andrew Tomaka 2015-12-11 07:48:47 -05:00
parent 63f9ff9ecf
commit 8b2eaa7d07
2 changed files with 5 additions and 4 deletions

View file

@ -24,6 +24,11 @@ precmd() {
}
local vcs='${vcs_info_msg_0_}'
# autocorrect
autoload -U compinit
compinit
setopt correct_all
# prompt
local return_code="%(?..%?)"
local prompt="%(?.%F{green}->.%F{red}-%B${return_code}%b%F{red}->%{%})%f"