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_}' local vcs='${vcs_info_msg_0_}'
# autocorrect
autoload -U compinit
compinit
setopt correct_all
# prompt # prompt
local return_code="%(?..%?)" local return_code="%(?..%?)"
local prompt="%(?.%F{green}->.%F{red}-%B${return_code}%b%F{red}->%{%})%f" local prompt="%(?.%F{green}->.%F{red}-%B${return_code}%b%F{red}->%{%})%f"

4
zshrc
View file

@ -15,10 +15,6 @@ HISTSIZE=20000
HISTFILE=~/.zsh_history HISTFILE=~/.zsh_history
SAVEHIST=20000 SAVEHIST=20000
# autocorrect
autoload -U compinit
compinit
# Make sure C-s works in vim # Make sure C-s works in vim
stty start undef stty start undef
stty stop undef stty stop undef