From 4c1ba4a4e1511c82bb18f78cb92737b9af137d0d Mon Sep 17 00:00:00 2001 From: ChesterYue Date: Tue, 23 Apr 2024 21:05:50 +0800 Subject: [PATCH 1/2] [F] [close #24] git - status disappear --- passion.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passion.zsh-theme b/passion.zsh-theme index cb8aac2..7bdb9fb 100644 --- a/passion.zsh-theme +++ b/passion.zsh-theme @@ -65,7 +65,7 @@ ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg_no_bold[red]%}✖%{$fg_no_bold[cyan]%}]"; ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_no_bold[cyan]%}]"; function update_git_status() { - GIT_STATUS=$(git_prompt_info); + GIT_STATUS=$(_omz_git_prompt_info); } function git_status() { From 7f06398c0a3c046f80f6162047b64a1c0ab7f76d Mon Sep 17 00:00:00 2001 From: ChesterYue Date: Tue, 23 Apr 2024 21:08:12 +0800 Subject: [PATCH 2/2] [F] format - space --- passion.zsh-theme | 1 + 1 file changed, 1 insertion(+) diff --git a/passion.zsh-theme b/passion.zsh-theme index 7bdb9fb..00d789b 100644 --- a/passion.zsh-theme +++ b/passion.zsh-theme @@ -22,6 +22,7 @@ function real_time() { echo "${color}${time}${color_reset}"; } + # login_info function login_info() { local color="%{$fg_no_bold[cyan]%}"; # color in PROMPT need format in %{XXX%} which is not same with echo