Browse code

Merge pull request #167 from jarinudom/master

Add superjarin theme that shows current ruby version via RVM

Robby Russell authored on 23/07/2011 at 16:25:30
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,18 @@
0
+# Grab the current version of ruby in use (via RVM): [ruby-1.8.7]
1
+JARIN_CURRENT_RUBY_="%{$fg[white]%}[%{$fg[red]%}\$(~/.rvm/bin/rvm-prompt i v)%{$fg[white]%}]%{$reset_color%}"
2
+
3
+# Grab the current filepath, use shortcuts: ~/Desktop
4
+# Append the current git branch, if in a git repository
5
+JARIN_CURRENT_LOCA_="%{$fg_bold[cyan]%}%~\$(git_prompt_info)%{$reset_color%}"
6
+ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[white]%} <%{$fg[magenta]%}"
7
+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
8
+
9
+# Do nothing if the branch is clean (no changes).
10
+ZSH_THEME_GIT_PROMPT_CLEAN="%{$reset_color%}>"
11
+
12
+# Add a yellow ✗ if the branch is dirty
13
+ZSH_THEME_GIT_PROMPT_DIRTY="%{$reset_color%}> %{$fg[yellow]%}✗"
14
+
15
+# Put it all together!
16
+PROMPT="$JARIN_CURRENT_RUBY_ $JARIN_CURRENT_LOCA_ "
17
+