1bbe4d8d2431b5ac06d7402b570431884786db58
- Author
- Felipe Francisco <felipefrancisco.cwb@gmail.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
feat(half-life): add virtualenv prompt (#11708)
Diff
1diff --git a/themes/half-life.zsh-theme b/themes/half-life.zsh-theme
2index c4d785126794214606a9c5e2bab40aa6625e9137..2ad84ac83f646a8815cb1ff3da66939bbb0e9cbf 100644
3--- a/themes/half-life.zsh-theme
4+++ b/themes/half-life.zsh-theme
5@@ -89,5 +89,9 @@ ZSH_THEME_RUBY_PROMPT_PREFIX="with%F{red} "
6 ZSH_THEME_RUBY_PROMPT_SUFFIX="%{$reset_color%}"
7 ZSH_THEME_RVM_PROMPT_OPTIONS="v g"
8
9+# virtualenv prompt settings
10+ZSH_THEME_VIRTUALENV_PREFIX=" with%F{red} "
11+ZSH_THEME_VIRTUALENV_SUFFIX="%{$reset_color%}"
12+
13 setopt prompt_subst
14-PROMPT="${purple}%n%{$reset_color%} in ${limegreen}%~%{$reset_color%}\$(ruby_prompt_info)\$vcs_info_msg_0_${orange} λ%{$reset_color%} "
15+PROMPT="${purple}%n%{$reset_color%} in ${limegreen}%~%{$reset_color%}\$(virtualenv_prompt_info)\$(ruby_prompt_info)\$vcs_info_msg_0_${orange} λ%{$reset_color%} "