mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-13 00:54:01 +08:00
71e4a166cf
I found this quite annoying not being in this theme after switching from gentoo-theme, it's helpful and it doesn't detract from simplicity.
7 lines
230 B
Bash
7 lines
230 B
Bash
PROMPT='%(!.%{$fg[red]%}.%{$fg[green]%})%~%{$fg_bold[blue]%}$(git_prompt_info)%{$reset_color%} '
|
|
|
|
ZSH_THEME_GIT_PROMPT_PREFIX="("
|
|
ZSH_THEME_GIT_PROMPT_SUFFIX=")"
|
|
ZSH_THEME_GIT_PROMPT_DIRTY=" ✗"
|
|
ZSH_THEME_GIT_PROMPT_CLEAN=" ✔"
|