New theme - Crunch
Robby Russell authored on 10/10/2011 at 12:33:121 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,37 @@ |
0 |
+# CRUNCH - created from Steve Eley's cat waxing. |
|
1 |
+# Initially hacked from the Dallas theme. Thanks, Dallas Reedy. |
|
2 |
+# |
|
3 |
+# This theme assumes you do most of your oh-my-zsh'ed "colorful" work at a single machine, |
|
4 |
+# and eschews the standard space-consuming user and hostname info. Instead, only the |
|
5 |
+# things that vary in my own workflow are shown: |
|
6 |
+# |
|
7 |
+# * The time (not the date) |
|
8 |
+# * The RVM version and gemset (omitting the 'ruby' name if it's MRI) |
|
9 |
+# * The current directory |
|
10 |
+# * The Git branch and its 'dirty' state |
|
11 |
+# |
|
12 |
+# Colors are at the top so you can mess with those separately if you like. |
|
13 |
+# For the most part I stuck with Dallas's. |
|
14 |
+ |
|
15 |
+CRUNCH_BRACKET_COLOR="%{$fg[white]%}" |
|
16 |
+CRUNCH_TIME_COLOR="%{$fg[yellow]%}" |
|
17 |
+CRUNCH_RVM_COLOR="%{$fg[magenta]%}" |
|
18 |
+CRUNCH_DIR_COLOR="%{$fg[cyan]%}" |
|
19 |
+CRUNCH_GIT_BRANCH_COLOR="%{$fg[green]%}" |
|
20 |
+CRUNCH_GIT_CLEAN_COLOR="%{$fg[green]%}" |
|
21 |
+CRUNCH_GIT_DIRTY_COLOR="%{$fg[red]%}" |
|
22 |
+ |
|
23 |
+# These Git variables are used by the oh-my-zsh git_prompt_info helper: |
|
24 |
+ZSH_THEME_GIT_PROMPT_PREFIX="$CRUNCH_BRACKET_COLOR:$CRUNCH_GIT_BRANCH_COLOR" |
|
25 |
+ZSH_THEME_GIT_PROMPT_SUFFIX="" |
|
26 |
+ZSH_THEME_GIT_PROMPT_CLEAN=" $CRUNCH_GIT_CLEAN_COLOR✓" |
|
27 |
+ZSH_THEME_GIT_PROMPT_DIRTY=" $CRUNCH_GIT_DIRTY_COLOR✗" |
|
28 |
+ |
|
29 |
+# Our elements: |
|
30 |
+CRUNCH_TIME_="$CRUNCH_BRACKET_COLOR{$CRUNCH_TIME_COLOR%T$CRUNCH_BRACKET_COLOR}%{$reset_color%}" |
|
31 |
+CRUNCH_RVM_="$CRUNCH_BRACKET_COLOR"["$CRUNCH_RVM_COLOR\${\$(~/.rvm/bin/rvm-prompt i v g)#ruby-}$CRUNCH_BRACKET_COLOR"]"%{$reset_color%}" |
|
32 |
+CRUNCH_DIR_="$CRUNCH_DIR_COLOR%~\$(git_prompt_info) " |
|
33 |
+CRUNCH_PROMPT="$CRUNCH_BRACKET_COLOR➭ " |
|
34 |
+ |
|
35 |
+# Put it all together! |
|
36 |
+PROMPT="$CRUNCH_TIME_$CRUNCH_RVM_$CRUNCH_DIR_$CRUNCH_PROMPT%{$reset_color%}" |