summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2014-11-27 20:00:56 -0800
committerRobby Russell <robby@planetargon.com>2014-11-27 20:00:56 -0800
commit9f4dfc0a231d0ddf76e6b3d998193acda916791e (patch)
treefacbda1bb82d223d1c842aa0a3d7e3ae9326a062 /themes
parent0222e774978232c03795b0e858d105aba6ed8123 (diff)
parentd0f3fb3a4fdce51e1f59bdf4817c7adec80b0784 (diff)
downloadzsh-9f4dfc0a231d0ddf76e6b3d998193acda916791e.tar.gz
zsh-9f4dfc0a231d0ddf76e6b3d998193acda916791e.tar.bz2
zsh-9f4dfc0a231d0ddf76e6b3d998193acda916791e.zip
Merge pull request #3309 from jarinudom/superjarin
Simplify superjarin theme and support chruby
Diffstat (limited to 'themes')
-rw-r--r--themes/superjarin.zsh-theme10
1 files changed, 2 insertions, 8 deletions
diff --git a/themes/superjarin.zsh-theme b/themes/superjarin.zsh-theme
index 2920d17a2..86fa9c706 100644
--- a/themes/superjarin.zsh-theme
+++ b/themes/superjarin.zsh-theme
@@ -1,11 +1,5 @@
-# Grab the current version of ruby in use (via RVM): [ruby-1.8.7]
-if [ -e ~/.rvm/bin/rvm-prompt ]; then
- JARIN_CURRENT_RUBY_="%{$fg[white]%}[%{$fg[red]%}\$(~/.rvm/bin/rvm-prompt i v)%{$fg[white]%}]%{$reset_color%}"
-else
- if which rbenv &> /dev/null; then
- JARIN_CURRENT_RUBY_="%{$fg[white]%}[%{$fg[red]%}\$(rbenv version | sed -e 's/ (set.*$//')%{$fg[white]%}]%{$reset_color%}"
- fi
-fi
+# Grab the current version of ruby in use: [ruby-1.8.7]
+JARIN_CURRENT_RUBY_="%{$fg[white]%}[%{$fg[red]%}\$(ruby_prompt_info)%{$fg[white]%}]%{$reset_color%}"
# Grab the current filepath, use shortcuts: ~/Desktop
# Append the current git branch, if in a git repository