1
0
Fork 0
mirror of synced 2024-11-16 04:55:35 -05:00

Added Diffrent SPROMPT Themes

This commit is contained in:
AtomicCoding 2018-04-07 18:32:23 -07:00
parent ce8ff7e673
commit 807f364204
No known key found for this signature in database
GPG key ID: D9C2E2ED3C4516FA
2 changed files with 12 additions and 1 deletions

View file

@ -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

View file

@ -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
#