This commit is contained in:
Nicolas Vaughan 2018-04-06 18:42:27 +00:00 committed by GitHub
commit bda000c9f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

10
themes/rainbow.zsh-theme Normal file
View 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%}"