diff options
author | Brent Faulkner <brent.faulkner@mosaic.com> | 2012-01-23 20:42:54 -0500 |
---|---|---|
committer | Brent Faulkner <brent.faulkner@mosaic.com> | 2012-01-23 20:42:54 -0500 |
commit | 6496acf58bf8531809490b52e34811f74a27cc7c (patch) | |
tree | 56607cbfdd2e9fc12dbbcf55b2a8b132f807e5ab /themes/suvash.zsh-theme | |
parent | ac910b85bd782ec7a033b67bab7be63785d063c2 (diff) | |
download | zsh-6496acf58bf8531809490b52e34811f74a27cc7c.tar.gz zsh-6496acf58bf8531809490b52e34811f74a27cc7c.tar.bz2 zsh-6496acf58bf8531809490b52e34811f74a27cc7c.zip |
adding rbenv support to all the rvm themes
Diffstat (limited to 'themes/suvash.zsh-theme')
-rw-r--r-- | themes/suvash.zsh-theme | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/themes/suvash.zsh-theme b/themes/suvash.zsh-theme index f50657db2..c87f64558 100644 --- a/themes/suvash.zsh-theme +++ b/themes/suvash.zsh-theme @@ -12,8 +12,15 @@ function collapse_pwd { echo $(pwd | sed -e "s,^$HOME,~,") } -PROMPT='%{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}%m%{$reset_color%} in %{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info) using %{$reset_color%}%{$fg[red]%}$(~/.rvm/bin/rvm-prompt)%{$reset_color%} +if which rvm-prompt &> /dev/null; then + PROMPT='%{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}%m%{$reset_color%} in %{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info) using %{$reset_color%}%{$fg[red]%}$(~/.rvm/bin/rvm-prompt)%{$reset_color%} $(virtualenv_info)$(prompt_char) ' +else + if which rbenv &> /dev/null; then + PROMPT='%{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}%m%{$reset_color%} in %{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info) using %{$reset_color%}%{$fg[red]%}$(rbenv version | sed -e "s/ (set.*$//")%{$reset_color%} +$(virtualenv_info)$(prompt_char) ' + fi +fi ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}" |