548f68d7f028acc70f4a9026a28161a604edc405

Author
Alexander Berezovsky <ab@plumdistrict.com>
Committer
Alexander Berezovsky <ab@plumdistrict.com>
Date

Message

fino-time theme

Diff

This diff is truncated to protect this page.

 1diff --git a/themes/fino-time.zsh-theme b/themes/fino-time.zsh-theme
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..22c7a09811e2efeb6b68dc1441f411f46c3c84c8
 4--- /dev/null
 5+++ b/themes/fino-time.zsh-theme
 6@@ -0,0 +1,39 @@
 7+# Fino-time theme by Aexander Berezovsky (http://berezovsky.me) based on Fino by Max Masnick (http://max.masnick.me)
 8+
 9+# Use with a dark background and 256-color terminal!
10+# Meant for people with RVM 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+# Borrowing shamelessly from these oh-my-zsh themes:
15+#   bira
16+#   robbyrussell
17+#
18+# Also borrowing from http://stevelosh.com/blog/2010/02/my-extravagant-zsh-prompt/
19+
20+function virtualenv_info {
21+    [ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
22+}
23+
24+function prompt_char {
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+
38+