From 0a9d10510762fecbb056414abb653a0fb5f9f60d Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Fri, 30 Sep 2016 09:36:40 -0500 Subject: [PATCH] [utility] Simplify correction prompt config For `setopt CORRECT`. Let the user uncomment a line with the `setopt` directly in the configuration file, instead of having a flag variable for it. Closes #90 --- modules/utility/init.zsh | 10 +--------- templates/zimrc | 4 ++-- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index 9fb20aa..faa9192 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -2,14 +2,6 @@ # Utility Functions and Options # -# -# Command Correction -# - -if [[ ${zcorrection} == 'true' ]]; then - setopt CORRECT -fi - # # ls Colours # @@ -23,7 +15,7 @@ if (( ${+commands[dircolors]} )); then fi alias ls='ls --group-directories-first --color=auto' - + else # BSD diff --git a/templates/zimrc b/templates/zimrc index 5458fb6..8b5e0fd 100644 --- a/templates/zimrc +++ b/templates/zimrc @@ -38,9 +38,9 @@ zprompt_theme='steeef' # Utility # -# Uncomment to enable command correction prompts; 'setopt CORRECT' +# Uncomment to enable command correction prompts # See: http://zsh.sourceforge.net/Doc/Release/Options.html#Input_002fOutput -#zcorrection='true' +#setopt CORRECT # # Input