mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +01:00
17 lines
No EOL
583 B
Bash
17 lines
No EOL
583 B
Bash
# ZSH Theme - Preview: https://dl.dropboxusercontent.com/u/6740094/oh-my-zsh-2013-05-02.png
|
|
|
|
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
|
|
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
|
|
|
PROMPT='%{$fg[red]%}%2~%{$reset_color%} \
|
|
$(git_prompt_info)\
|
|
%{$fg[blue]%}%(!.#.»)%{$reset_color%} '
|
|
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
|
|
RPS1='${return_code}'
|
|
|
|
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}"
|
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
|
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
ZSH_THEME_GIT_PROMPT_DIRTY="⚡"
|
|
|
|
RPROMPT='%{$fg[green]%}%*%{$reset_color%}' |