From 5d9bf8dd720502a3fc8b515fc13a24622ee3cc2c Mon Sep 17 00:00:00 2001 From: AtomicCoding Date: Sat, 21 Apr 2018 12:34:00 -0700 Subject: [PATCH] Changed Config Method --- modules/completion/init.zsh | 8 ++------ templates/zimrc | 3 --- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/modules/completion/init.zsh b/modules/completion/init.zsh index 6c12777..154e62b 100644 --- a/modules/completion/init.zsh +++ b/modules/completion/init.zsh @@ -22,12 +22,8 @@ autoload -Uz compinit && compinit -C -d "${ZDOTDIR:-${HOME}}/${zcompdump_file:-. source ${0:h}/compdefs.zsh # set custom sprompt -if [[ ! ${TERM} = 'dumb' ]]; then - if (( ${+zsprompt} )); then - SPROMPT=$zsprompt - else - SPROMPT='zsh: correct %F{red}%R%f to %F{green}%r%f [nyae]? ' - fi +if [ ${SPROMPT} = "zsh: correct '%R' to '%r' [nyae]?" ]; then + SPROMPT='zsh: correct %F{red}%R%f to %F{green}%r%f [nyae]? ' fi # diff --git a/templates/zimrc b/templates/zimrc index 8d16ec7..203a7a6 100644 --- a/templates/zimrc +++ b/templates/zimrc @@ -34,9 +34,6 @@ zprompt_theme='steeef' # if none is provided, the default '.zcompdump' is used. #zcompdump_file=".zcompdump-${HOST}-${ZSH_VERSION}" -# Set your own completion prompt, comment out for default -#zsprompt='Correct %F{red}%R%f to %F{green}%r%f? (%UY%ues, %UN%uo, %UA%ubort, %UE%udit)? ' - # # Utility #