diff options
author | Robby Russell <robby@planetargon.com> | 2011-07-23 09:13:57 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2011-07-23 09:13:57 -0700 |
commit | 5e4d89385f8596b09a3bbb727015f81a53e9d6b4 (patch) | |
tree | 75dfb8d2cb59aaa85e2e3debf309e8e098fffec9 /themes/dpoggi.zsh-theme | |
parent | 96b0af68242ec6235e4162f5e7e1f4d470cb2b22 (diff) | |
parent | bea196de3b01fc8fe6e5b717c28d5064fa413dd9 (diff) | |
download | zsh-5e4d89385f8596b09a3bbb727015f81a53e9d6b4.tar.gz zsh-5e4d89385f8596b09a3bbb727015f81a53e9d6b4.tar.bz2 zsh-5e4d89385f8596b09a3bbb727015f81a53e9d6b4.zip |
Merge branch 'master' of github.com:robbyrussell/oh-my-zsh
Diffstat (limited to 'themes/dpoggi.zsh-theme')
-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%}" |