diff --git a/modules/completion/init.zsh b/modules/completion/init.zsh index b26ac19..8efaa53 100644 --- a/modules/completion/init.zsh +++ b/modules/completion/init.zsh @@ -22,7 +22,15 @@ autoload -Uz compinit && compinit -C -d "${ZDOTDIR:-${HOME}}/${zcompdump_file:-. source ${0:h}/compdefs.zsh # set custom sprompt -SPROMPT="Correct %F{1}%R%f to %F{2}%r%f? (%UY%ues, %UN%uo, %UA%ubort, %UE%udit)? " +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 + fi +fi # # zsh options diff --git a/templates/zimrc b/templates/zimrc index 203a7a6..3f61d37 100644 --- a/templates/zimrc +++ b/templates/zimrc @@ -26,6 +26,9 @@ 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 #