Move last_cmd_status to git-prompt
+ disable right prompt
This commit is contained in:
parent
9f7bb06370
commit
d424642b53
14
zshrc
14
zshrc
@ -1759,11 +1759,11 @@ fi
|
|||||||
# comporte à la vim. Il y a donc un mode commande/normal et un mode insertion.
|
# comporte à la vim. Il y a donc un mode commande/normal et un mode insertion.
|
||||||
|
|
||||||
# Afficher le mode courant dans le prompt de droite (normal|insertion)
|
# Afficher le mode courant dans le prompt de droite (normal|insertion)
|
||||||
function zle-line-init zle-keymap-select {
|
#function zle-line-init zle-keymap-select {
|
||||||
RPS1="$(last_cmd_status) ${${KEYMAP/vicmd/-CMD-}/(main|viins)/-INS-}"
|
#RPS1="$(last_cmd_status) ${${KEYMAP/vicmd/-CMD-}/(main|viins)/-INS-}"
|
||||||
RPS2=$RPS1
|
#RPS2=$RPS1
|
||||||
zle reset-prompt
|
#zle reset-prompt
|
||||||
}
|
#}
|
||||||
|
|
||||||
# easy color names in this config
|
# easy color names in this config
|
||||||
autoload -U colors && colors
|
autoload -U colors && colors
|
||||||
@ -2612,8 +2612,8 @@ if [ -f ~/repos/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then
|
|||||||
ZSH_THEME_GIT_PROMPT_STASHED="%{$fg[blue]%}⚑"
|
ZSH_THEME_GIT_PROMPT_STASHED="%{$fg[blue]%}⚑"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[green]%}✔"
|
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[green]%}✔"
|
||||||
|
|
||||||
# DATE(bold blue) SHORTNAME(white) PATH(bold) · GIT-PROMPT
|
# LAST_CMD_STATUS (green|yellow|red) DATE(bold blue) SHORTNAME(white) PATH(bold) · GIT-PROMPT
|
||||||
PROMPT=$'┏╸%B%F{blue}%D{%H:%M}%f%b %F{white}%m%f %B%~%b$(gitprompt)\
|
PROMPT=$'┏╸$(last_cmd_status) %B%F{blue}%D{%H:%M}%f%b %F{white}%m%f %B%~%b$(gitprompt)\
|
||||||
┗╸%F{blue}❯%f%F{cyan}❯%f%F{green}❯%f '
|
┗╸%F{blue}❯%f%F{cyan}❯%f%F{green}❯%f '
|
||||||
RPROMPT=''
|
RPROMPT=''
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user