From 8b2eaa7d072a803acea6d1c1222d33689d8aace5 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Fri, 11 Dec 2015 07:48:47 -0500 Subject: [PATCH] Make correction work --- zsh/prompt | 5 +++++ zshrc | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) 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