2011-07-13 05:20:21 +02:00
|
|
|
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
|
2019-12-19 03:07:30 +01:00
|
|
|
local return_code="%(?..%F{red}%? ↵%f)"
|
2011-07-13 05:20:21 +02:00
|
|
|
|
2019-12-19 03:07:30 +01:00
|
|
|
PROMPT='%F{$NCOLOR}%n%f@%F{cyan}%m\
|
|
|
|
%f:%F{magenta}%~\
|
2011-07-13 05:20:21 +02:00
|
|
|
$(git_prompt_info) \
|
2019-12-19 03:07:30 +01:00
|
|
|
%F{red}%(!.#.»)%f '
|
|
|
|
PROMPT2='%F{red}\ %f'
|
2011-07-13 05:20:21 +02:00
|
|
|
RPS1='${return_code}'
|
|
|
|
|
2019-12-19 03:07:30 +01:00
|
|
|
ZSH_THEME_GIT_PROMPT_PREFIX="%F{yellow}("
|
|
|
|
ZSH_THEME_GIT_PROMPT_CLEAN="%F{green}○%f"
|
|
|
|
ZSH_THEME_GIT_PROMPT_DIRTY="%F{red}⚡%f"
|
|
|
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%F{yellow})%f"
|