From 95cc94d9a03768e891d97b3c386b6073d3ac5b0a Mon Sep 17 00:00:00 2001 From: Matt Hamilton Date: Sun, 17 Jan 2016 07:08:08 -0500 Subject: [PATCH] [utility] add setopt correct option This option can be enabled by setting `zcorrection='true'` in .zimrc Closes #25 --- modules/utility/init.zsh | 7 +++++++ templates/zimrc | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index 004fd46..64e3a3b 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -2,6 +2,13 @@ # Utility Functions and Options # +# +# Command Correction +# + +if [[ ${zcorrection} == 'true' ]]; then + setopt CORRECT +fi # # ls Colours diff --git a/templates/zimrc b/templates/zimrc index 824f00a..f23ab75 100644 --- a/templates/zimrc +++ b/templates/zimrc @@ -24,6 +24,13 @@ zmodules=(directory environment git history input utility custom \ # Set your desired prompt here zprompt_theme='steeef' +# +# Utility +# + +# Enables command correction prompts; setopt CORRECT +# See: http://zsh.sourceforge.net/Doc/Release/Options.html#Input_002fOutput +zcorrection='false' # # Syntax-Highlighting