Compare commits

...

4 Commits

Author SHA1 Message Date
Thang Do 7e311e908e
Merge 185274e75a into 7a3695aadf 2025-01-13 14:21:00 +10:30
Michele Bologna 7a3695aadf
fix(grc): add linuxbrew path (#12903) 2025-01-12 14:25:00 +01:00
Thang Do 185274e75a style(afowler): Change color of the :: characters based on prev command exit code 2025-01-02 14:27:33 +10:30
Thang Do 612f9f59ca 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)
2025-01-01 22:30:38 +10:30
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ files=(
/etc/grc.zsh # default
/usr/local/etc/grc.zsh # homebrew darwin-x64
/opt/homebrew/etc/grc.zsh # homebrew darwin-arm64
/home/linuxbrew/.linuxbrew/etc/grc.zsh # linuxbrew
/usr/share/grc/grc.zsh # Gentoo Linux (app-misc/grc)
)

View File

@ -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}.%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]%}"