customized giddie theme a little
This commit is contained in:
parent
eeb365fb49
commit
6e391949c5
@ -15,11 +15,11 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
function +vi-set_novcs_prompt_symbol {
|
function +vi-set_novcs_prompt_symbol {
|
||||||
_prompt_giddie_symbol=')'
|
_prompt_giddie_symbol='❯❯❯'
|
||||||
}
|
}
|
||||||
|
|
||||||
function +vi-set_vcs_prompt_symbol {
|
function +vi-set_vcs_prompt_symbol {
|
||||||
_prompt_giddie_symbol='±'
|
_prompt_giddie_symbol='❯❯❯'
|
||||||
}
|
}
|
||||||
|
|
||||||
function +vi-git_precmd {
|
function +vi-git_precmd {
|
||||||
@ -35,6 +35,12 @@ function prompt_giddie_precmd {
|
|||||||
vcs_info
|
vcs_info
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function prompt_giddie_nix_shell {
|
||||||
|
if [ ! -z "$IN_NIX_SHELL" ]; then
|
||||||
|
echo -n "nix-shell "
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
function prompt_giddie_setup {
|
function prompt_giddie_setup {
|
||||||
setopt LOCAL_OPTIONS
|
setopt LOCAL_OPTIONS
|
||||||
unsetopt XTRACE KSH_ARRAYS
|
unsetopt XTRACE KSH_ARRAYS
|
||||||
@ -68,7 +74,7 @@ function prompt_giddie_setup {
|
|||||||
# Define prompts.
|
# Define prompts.
|
||||||
PROMPT='%(?..%F{red}%B-> [%?]%b%f
|
PROMPT='%(?..%F{red}%B-> [%?]%b%f
|
||||||
)%F{magenta}%n%f@%F{yellow}%m%f|%F{green}${_prompt_giddie_pwd}%f${vcs_info_msg_0_}
|
)%F{magenta}%n%f@%F{yellow}%m%f|%F{green}${_prompt_giddie_pwd}%f${vcs_info_msg_0_}
|
||||||
%F{blue}${_prompt_giddie_symbol}%f '
|
%F{blue}$(prompt_giddie_nix_shell)${_prompt_giddie_symbol}%f '
|
||||||
RPROMPT='${editor_info[keymap]}'
|
RPROMPT='${editor_info[keymap]}'
|
||||||
SPROMPT='zsh: correct %F{magenta}%R%f to %F{green}%r%f [nyae]? '
|
SPROMPT='zsh: correct %F{magenta}%R%f to %F{green}%r%f [nyae]? '
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user