9e3776f1ecbaa29d646cdfe8fc204597ca98746c

Author
Max Masnick <max@masnick.me>
Committer
Max Masnick <max@masnick.me>
Date

Message

update fino theme to work with rbenv

also fix bug where prompt char did not reflect
whether or not you were in a git repo.

Diff

This diff is truncated to protect this page.

 1diff --git a/themes/fino.zsh-theme b/themes/fino.zsh-theme
 2index 17cf597086c2cd501f928ddaf6b287ab6a1687cb..a7a63f66101d288df35ae4e1e51f5c2df428bb01 100644
 3--- a/themes/fino.zsh-theme
 4+++ b/themes/fino.zsh-theme
 5@@ -1,7 +1,7 @@
 6 # Fino theme by Max Masnick (http://max.masnick.me)
 7 
 8 # Use with a dark background and 256-color terminal!
 9-# Meant for people with RVM and git. Tested only on OS X 10.7.
10+# Meant for people with rbenv and git. Tested only on OS X 10.7.
11 
12 # You can set your computer name in the ~/.box-name file if you want.
13 
14@@ -11,27 +11,24 @@
15 #
16 # Also borrowing from http://stevelosh.com/blog/2010/02/my-extravagant-zsh-prompt/
17 
18-function virtualenv_info {
19-    [ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
20-}
21 
22 function prompt_char {
23-    git branch >/dev/null 2>/dev/null && echo '±' && return
24-    echo '○'
25+  git branch >/dev/null 2>/dev/null && echo "±" && return
26+  echo '○'
27 }
28 
29 function box_name {
30     [ -f ~/.box-name ] && cat ~/.box-name || hostname -s
31 }
32 
33-
34-local rvm_ruby='‹$(rvm-prompt i v g)›%{$reset_color%}'
35 local current_dir='${PWD/#$HOME/~}'
36 local git_info='$(git_prompt_info)'
37+local prompt_char='$(prompt_char)'
38+local rbenv_version='$(rbenv version-name)'
39 
40