Skip to content

Loading…

Added a new theme #365

Merged
merged 1 commit into from

2 participants

@briankftse

Hi Robby,

I've added a new theme, could you merge it into your branch?

-Brian

@robbyrussell

Sure.. merging in a moment. Could you add a screenshot to our Themes page?

Thanks in advance!

Cheers,
Robby

@robbyrussell robbyrussell merged commit 0eba536 into robbyrussell:master
@briankftse

Awesome thanks so much.
I've updated the Themes page with a screen shot.

-Brian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 28, 2011
  1. @briankftse

    Add new 'minimal' theme

    briankftse committed
This page is out of date. Refresh to see the latest.
Showing with 15 additions and 0 deletions.
  1. +15 −0 themes/minimal.zsh-theme
View
15 themes/minimal.zsh-theme
@@ -0,0 +1,15 @@
+ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[white]%}["
+ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}●%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_CLEAN=""
+
+#Customized git status, oh-my-zsh currently does not allow render dirty status before branch
+git_custom_status() {
+ local cb=$(current_branch)
+ if [ -n "$cb" ]; then
+ echo "- $ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_SUFFIX"
+ fi
+}
+
+
+PROMPT='%2~ $(git_custom_status) »%b '
Something went wrong with that request. Please try again.