diff --git a/zsh/prompt b/zsh/prompt index 6312267..0eac433 100644 --- a/zsh/prompt +++ b/zsh/prompt @@ -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" diff --git a/zshrc b/zshrc index 8d9c8ee..ea884d0 100644 --- a/zshrc +++ b/zshrc @@ -15,10 +15,6 @@ HISTSIZE=20000 HISTFILE=~/.zsh_history SAVEHIST=20000 -# autocorrect -autoload -U compinit -compinit - # Make sure C-s works in vim stty start undef stty stop undef