mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-24 04:29:25 +02:00
Adds support for virtualenv for the bira theme
This commit is contained in:
parent
5365cca76a
commit
d62a3c23c6
1 changed files with 9 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ fi
|
|||
|
||||
local current_dir='%{$terminfo[bold]$fg[blue]%} %~%{$reset_color%}'
|
||||
local rvm_ruby=''
|
||||
|
||||
if which rvm-prompt &> /dev/null; then
|
||||
rvm_ruby='%{$fg[red]%}‹$(rvm-prompt i v g)›%{$reset_color%}'
|
||||
else
|
||||
|
|
@ -17,6 +18,14 @@ else
|
|||
rvm_ruby='%{$fg[red]%}‹$(rbenv version | sed -e "s/ (set.*$//")›%{$reset_color%}'
|
||||
fi
|
||||
fi
|
||||
|
||||
# Adds support to show current virtualenv integrating virtualenvwrapper hooks
|
||||
if $VIRTUAL_ENV; then
|
||||
ZSH_THEME_VIRTUALENV_PREFIX="%{$fg[red]%}‹"
|
||||
ZSH_THEME_VIRTUALENV_SUFFIX="›%{$reset_color%}"
|
||||
rvm_ruby='$(virtualenv_prompt_info)'
|
||||
fi
|
||||
|
||||
local git_branch='$(git_prompt_info)%{$reset_color%}'
|
||||
|
||||
PROMPT="╭─${user_host} ${current_dir} ${rvm_ruby} ${git_branch}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue