diff options
author | Robby Russell <robby@planetargon.com> | 2011-07-23 08:59:30 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2011-07-23 08:59:30 -0700 |
commit | 7a452fd9501cf8766fa166350cff919cbdf0045e (patch) | |
tree | eb1119d079a380a475f5df3fd396785a99bb42c2 /themes | |
parent | ae9457d84d4d70ed0c8b67706ad8718e40074713 (diff) | |
parent | 8f62ef490de6945308c144a3bee7c3509a16d421 (diff) | |
download | zsh-7a452fd9501cf8766fa166350cff919cbdf0045e.tar.gz zsh-7a452fd9501cf8766fa166350cff919cbdf0045e.tar.bz2 zsh-7a452fd9501cf8766fa166350cff919cbdf0045e.zip |
Merge pull request #461 from dpoggi/master
Added 'dpoggi' theme
Diffstat (limited to 'themes')
-rw-r--r-- | themes/dpoggi.zsh-theme | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/themes/dpoggi.zsh-theme b/themes/dpoggi.zsh-theme new file mode 100644 index 000000000..6469a2009 --- /dev/null +++ b/themes/dpoggi.zsh-theme @@ -0,0 +1,14 @@ +if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi +local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" + +PROMPT='%{$fg[$NCOLOR]%}%n%{$reset_color%}@%{$fg[cyan]%}%m\ +%{$reset_color%}:%{$fg[magenta]%}%~\ +$(git_prompt_info) \ +%{$fg[red]%}%(!.#.»)%{$reset_color%} ' +PROMPT2='%{$fg[red]%}\ %{$reset_color%}' +RPS1='${return_code}' + +ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}(" +ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}○%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}⚡%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[yellow]%})%{$reset_color%}" |