diff options
author | Matthew Gadd <hello@darkotter.com> | 2010-04-06 08:24:33 +0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2010-05-08 04:24:24 +0800 |
commit | 36f1f4e51595943d0b8e06a9078aa6f627a9734d (patch) | |
tree | 645ba14227bdef17b25f672556dc8e933256869f /themes/dst.zsh-theme | |
parent | 93f9825b79f7dc577d8891f0264fbdc484be80b0 (diff) | |
download | zsh-36f1f4e51595943d0b8e06a9078aa6f627a9734d.tar.gz zsh-36f1f4e51595943d0b8e06a9078aa6f627a9734d.tar.bz2 zsh-36f1f4e51595943d0b8e06a9078aa6f627a9734d.zip |
Add my oh-my-zsh theme
Diffstat (limited to 'themes/dst.zsh-theme')
-rw-r--r-- | themes/dst.zsh-theme | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/themes/dst.zsh-theme b/themes/dst.zsh-theme new file mode 100644 index 000000000..fa0d9cb06 --- /dev/null +++ b/themes/dst.zsh-theme @@ -0,0 +1,16 @@ + +ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[green]%}" +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}!" +ZSH_THEME_GIT_PROMPT_CLEAN="" + +function prompt_char { + if [ "$(whoami)" = "root" ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi +} + +PROMPT='%(?, ,%{$fg[red]%}FAIL%{$reset_color%} +) +%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}%m%{$reset_color%}: %{$fg_bold[blue]%}%~%{$reset_color%}$(git_prompt_info) +%_ $(prompt_char) ' + +RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}' |