From b80ac0714c7456c69035a028834494e295d30fad Mon Sep 17 00:00:00 2001 From: AtomicCoding Date: Sun, 8 Apr 2018 11:25:16 -0700 Subject: [PATCH] Removed themes and switched to override method --- modules/completion/init.zsh | 10 ++++------ templates/zimrc | 6 +++--- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/modules/completion/init.zsh b/modules/completion/init.zsh index 8efaa53..0ccca72 100644 --- a/modules/completion/init.zsh +++ b/modules/completion/init.zsh @@ -23,12 +23,10 @@ source ${0:h}/compdefs.zsh # set custom sprompt if [[ ! ${TERM} = 'dumb' ]]; then - if (( ${+zsprompt_theme} )); then - if [ $zsprompt_theme = "zim" ]; then - SPROMPT="Correct %F{1}%R%f to %F{2}%r%f? (%UY%ues, %UN%uo, %UA%ubort, %UE%udit)? " - elif [ $zsprompt_theme = "color" ]; then - SPROMPT='zsh: correct %F{1}%R%f to %F{2}%r%f [nyae]? ' - fi + if (( ${+zsprompt} )); then + SPROMPT=$zsprompt + else + SPROMPT='zsh: correct %F{1}%R%f to %F{2}%r%f [nyae]? ' fi fi diff --git a/templates/zimrc b/templates/zimrc index 3f61d37..8d16ec7 100644 --- a/templates/zimrc +++ b/templates/zimrc @@ -26,9 +26,6 @@ zmodules=(directory environment git git-info history input utility custom \ # Set your desired prompt here zprompt_theme='steeef' -# Set your completion prompt here, options are 'zim' and 'color' -zsprompt_theme='zim' - # # Completion # @@ -37,6 +34,9 @@ zsprompt_theme='zim' # 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 #