Added Diffrent SPROMPT Themes
This commit is contained in:
parent
ce8ff7e673
commit
807f364204
2 changed files with 12 additions and 1 deletions
|
@ -22,7 +22,15 @@ autoload -Uz compinit && compinit -C -d "${ZDOTDIR:-${HOME}}/${zcompdump_file:-.
|
|||
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
|
||||
fi
|
||||
fi
|
||||
|
||||
#
|
||||
# zsh options
|
||||
|
|
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue