8a94013f37d658ea20ddee9c83ca7b8e1e933c28
- Author
- djr-jsr <djr.jsr@gmail.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
bira: add virtualenv support in prompt
Fixes #7483
Closes #4973
Diff
1diff --git a/themes/bira.zsh-theme b/themes/bira.zsh-theme
2index 6754839969ae031ef12f8517e0da5f4c8658cbf4..0a20b233e984ab6e23d4d6cb4611a45ae0c0161e 100644
3--- a/themes/bira.zsh-theme
4+++ b/themes/bira.zsh-theme
5@@ -20,11 +20,14 @@ else
6 fi
7 fi
8 local git_branch='$(git_prompt_info)%{$reset_color%}'
9+local venv_prompt='$(virtualenv_prompt_info)%{$reset_color%}'
10
11-PROMPT="╭─${user_host} ${current_dir} ${rvm_ruby} ${git_branch}
12+PROMPT="╭─${venv_prompt} ${user_host} ${current_dir} ${rvm_ruby} ${git_branch}
13 ╰─%B${user_symbol}%b "
14 RPS1="%B${return_code}%b"
15
16 ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"
17 ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}"
18
19+ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX="%{$fg[green]%}‹"
20+ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX="› %{$reset_color%}"