Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Warhead theme #716

Closed
wants to merge 1 commit into from

2 participants

@ryands

This is a theme that I use locally. I "ported" it over to oh-my-zsh when I switched from my own .zshrc to oh-my-zsh.

Screenshot (warhead is the hostname, as well as the name of the theme):
Screenshot

rschultz warhead 9bc4618
@robbyrussell

Unfortunately, we're holding off on new themes for now. You can always include this in your own fork though and/or inside the custom directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 9, 2013
  1. @ryands

    warhead

    rschultz authored ryands committed
This page is out of date. Refresh to see the latest.
Showing with 17 additions and 0 deletions.
  1. +17 −0 themes/warhead.zsh-theme
View
17 themes/warhead.zsh-theme
@@ -0,0 +1,17 @@
+# warhead theme for oh-my-zsh
+
+if [ $UID -eq 0 ]; then
+ BCOLOR=$fg_bold[red]
+ PCOLOR=$fg_bold[yellow]
+else
+ BCOLOR=$fg_bold[blue]
+ PCOLOR=$fg[green]
+fi
+
+
+ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}[%{$reset_color%}%{$fg[green]%}"
+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg_bold[blue]%}]%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}+%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_CLEAN=""
+
+PROMPT='%{$fg_bold[red]%}%(?..%?%1v )%{$fg_bold[white]%}%m %{$BCOLOR%}[%{$reset_color%}%{$PCOLOR%}%~%{$BCOLOR%}]$(git_prompt_info) %{$BCOLOR%}%# %{$reset_color%}'
Something went wrong with that request. Please try again.