mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-29 04:53:17 +02:00
Merge 8d83d56ae0 into 62b8a70a7c
This commit is contained in:
commit
bda000c9f6
1 changed files with 10 additions and 0 deletions
10
themes/rainbow.zsh-theme
Normal file
10
themes/rainbow.zsh-theme
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
function _prompt_char() {
|
||||
if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then
|
||||
echo ' '
|
||||
fi
|
||||
}
|
||||
|
||||
PROMPT='%F{red}[%B%F{220}%n%F{green}@%F{39}%m %F{5}%1~%F{red}$(_prompt_char)$(git_prompt_info)%F{red}%b]%f%# '
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue