Skip to content

Commit 757fa33

Browse files
committed
Merge pull request ohmyzsh#505 from masnick/master
Add new theme (fino.zsh-theme)
2 parents b8ade48 + f35bfd9 commit 757fa33

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

themes/fino.zsh-theme

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Fino theme by Max Masnick (http://max.masnick.me)
2+
3+
# Use with a dark background and 256-color terminal!
4+
# Meant for people with RVM and git. Tested only on OS X 10.7.
5+
6+
# You can set your computer name in the ~/.box-name file if you want.
7+
8+
# Borrowing shamelessly from these oh-my-zsh themes:
9+
# bira
10+
# robbyrussell
11+
#
12+
# Also borrowing from http://stevelosh.com/blog/2010/02/my-extravagant-zsh-prompt/
13+
14+
function virtualenv_info {
15+
[ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
16+
}
17+
18+
function prompt_char {
19+
git branch >/dev/null 2>/dev/null && echo '±' && return
20+
echo ''
21+
}
22+
23+
function box_name {
24+
[ -f ~/.box-name ] && cat ~/.box-name || hostname -s
25+
}
26+
27+
28+
local rvm_ruby='‹$(rvm-prompt i v g)›%{$reset_color%}'
29+
local current_dir='${PWD/#$HOME/~}'
30+
local git_info='$(git_prompt_info)'
31+
32+
33+
PROMPT="╭─%{$FG[040]%}%n%{$reset_color%} %{$FG[239]%}at%{$reset_color%} %{$FG[033]%}$(box_name)%{$reset_color%} %{$FG[239]%}in%{$reset_color%} %{$terminfo[bold]$FG[226]%}${current_dir}%{$reset_color%}${git_info} %{$FG[239]%}using%{$FG[243]%} ${rvm_ruby}
34+
╰─$(virtualenv_info)$(prompt_char) "
35+
36+
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$FG[239]%}on%{$reset_color%} %{$fg[255]%}"
37+
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
38+
ZSH_THEME_GIT_PROMPT_DIRTY="%{$FG[202]%}✘✘✘"
39+
ZSH_THEME_GIT_PROMPT_CLEAN="%{$FG[040]%}✔"

0 commit comments

Comments
 (0)