mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-29 04:53:17 +02:00
13 lines
441 B
Bash
13 lines
441 B
Bash
if [[ $EUID > 0 ]] ; then
|
|
local symbol=$
|
|
else
|
|
local symbol=#
|
|
fi
|
|
|
|
local symbol="%(?:%{$fg_bold[green]%}${symbol}:%{$fg_bold[red]%}${symbol})"
|
|
PROMPT='${symbol} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
|
|
|
|
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
|
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
|
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
|
|
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|