From 612f9f59ca4738561e6e9da595c2fc0ac18b8680 Mon Sep 17 00:00:00 2001 From: Thang Do Date: Wed, 1 Jan 2025 22:30:38 +1030 Subject: [PATCH 1/2] style(afowler): Change caret color based on previous command exit code Blue for success (returns 0 exit code) Red for failed (return non-zero exit code) --- themes/afowler.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/afowler.zsh-theme b/themes/afowler.zsh-theme index f6d3ef82a..e097abc5a 100644 --- a/themes/afowler.zsh-theme +++ b/themes/afowler.zsh-theme @@ -1,4 +1,4 @@ -PROMPT='%m %B%F{blue}:: %b%F{green}%3~ $(hg_prompt_info)$(git_prompt_info)%B%(!.%F{red}.%F{blue})»%f%b ' +PROMPT='%m %B%F{blue}:: %b%F{green}%3~ $(hg_prompt_info)$(git_prompt_info)%B%(?.%F{blue}.%F{red})»%f%b ' RPS1='%(?..%F{red}%? ↵%f)' ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹" From 185274e75afaed2e5cea072a2d149a45fb9d7651 Mon Sep 17 00:00:00 2001 From: Thang Do Date: Thu, 2 Jan 2025 14:27:33 +1030 Subject: [PATCH 2/2] style(afowler): Change color of the :: characters based on prev command exit code --- themes/afowler.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/afowler.zsh-theme b/themes/afowler.zsh-theme index e097abc5a..e32000fb3 100644 --- a/themes/afowler.zsh-theme +++ b/themes/afowler.zsh-theme @@ -1,4 +1,4 @@ -PROMPT='%m %B%F{blue}:: %b%F{green}%3~ $(hg_prompt_info)$(git_prompt_info)%B%(?.%F{blue}.%F{red})»%f%b ' +PROMPT='%m %B%(?.%F{blue}.%F{red}):: %f%b%F{green}%3~ $(hg_prompt_info)$(git_prompt_info)%B%(?.%F{blue}.%F{red})»%f%b ' RPS1='%(?..%F{red}%? ↵%f)' ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"