File tree 1 file changed +10
-3
lines changed
zsh/.config/zsh/.zsh-custom/themes
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -59,9 +59,16 @@ function _git_pushable() {
59
59
_vcs_info_wrapper () {
60
60
vcs_info
61
61
if echo " ${vcs_info_msg_0_} " | grep -qE ' jj/keep' ; then
62
- echo " @" # controlled by jujutsu
62
+ line=" $( jj log -r @ --no-graph) "
63
+ if echo " $line " | grep -q " (empty)" ; then
64
+ echo -e " %F{002}$( echo " $line " | cut -d' ' -f1) %{$reset_color %}"
65
+ elif echo " $line " | grep -q " (no description set)" ; then
66
+ echo -e " %F{003}$( echo " $line " | cut -d' ' -f1) %{$reset_color %}"
67
+ else
68
+ echo " $line " | cut -d' ' -f1
69
+ fi
63
70
else
64
- echo " ${vcs_info_msg_0_} "
71
+ echo " %F{green} ${vcs_info_msg_0_} %{ $reset_color % }"
65
72
fi
66
73
}
67
74
@@ -152,7 +159,7 @@ function generate_lpropmpt() {
152
159
if [[ -n " $TMUX " ]] ; then
153
160
PROMPT_GREPPER=" "
154
161
fi
155
- echo " ${${KEYMAP/ vicmd/ $NORMAL_COLOR } / (main|viins)/ $INSERT_COLOR }${_return_status}${_tmux_indicator} %F{green} $( _vcs_info_wrapper ) %F{yellow}%B%(1j.#.)%{$reset_color %}$PROMPT_GREPPER "
162
+ echo " ${${KEYMAP/ vicmd/ $NORMAL_COLOR } / (main|viins)/ $INSERT_COLOR }${_return_status}${_tmux_indicator} $( _vcs_info_wrapper ) %F{yellow}%B%(1j.#.)%{$reset_color %}$PROMPT_GREPPER "
156
163
}
157
164
158
165
function generate_rpropmpt() {
You can’t perform that action at this time.
0 commit comments