Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 22 lines (18 sloc) 0.799 kb
72d7c03 @Bira Added my own theme, based on macovsky-ruby and funky
Bira authored
1 # ZSH Theme - Preview: http://gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png
2 local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
3
4 local user_host='%{$terminfo[bold]$fg[green]%}%n@%m%{$reset_color%}'
5 local current_dir='%{$terminfo[bold]$fg[blue]%} %~%{$reset_color%}'
6496acf @sbfaulkner adding rbenv support to all the rvm themes
sbfaulkner authored
6 local rvm_ruby=''
7 if which rvm-prompt &> /dev/null; then
8 rvm_ruby='%{$fg[red]%}‹$(rvm-prompt i v g)›%{$reset_color%}'
9 else
10 if which rbenv &> /dev/null; then
11 rvm_ruby='%{$fg[red]%}‹$(rbenv version | sed -e "s/ (set.*$//")›%{$reset_color%}'
12 fi
13 fi
72d7c03 @Bira Added my own theme, based on macovsky-ruby and funky
Bira authored
14 local git_branch='$(git_prompt_info)%{$reset_color%}'
15
16 PROMPT="╭─${user_host} ${current_dir} ${rvm_ruby} ${git_branch}
17 ╰─%B$%b "
18 RPS1="${return_code}"
19
20 ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"
21 ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}"
Something went wrong with that request. Please try again.