summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorFelipe Francisco <felipefrancisco.cwb@gmail.com>2023-05-23 03:46:46 -0300
committerGitHub <noreply@github.com>2023-05-23 08:46:46 +0200
commit1bbe4d8d2431b5ac06d7402b570431884786db58 (patch)
treee3e28593d40371644bea5d416e5a3a8ce6f1dd43 /themes
parent902b79e635fedf4a12542d2ed8bd29665d3d281c (diff)
downloadzsh-1bbe4d8d2431b5ac06d7402b570431884786db58.tar.gz
zsh-1bbe4d8d2431b5ac06d7402b570431884786db58.tar.bz2
zsh-1bbe4d8d2431b5ac06d7402b570431884786db58.zip
feat(half-life): add virtualenv prompt (#11708)
Diffstat (limited to 'themes')
-rw-r--r--themes/half-life.zsh-theme6
1 files changed, 5 insertions, 1 deletions
diff --git a/themes/half-life.zsh-theme b/themes/half-life.zsh-theme
index c4d785126..2ad84ac83 100644
--- a/themes/half-life.zsh-theme
+++ b/themes/half-life.zsh-theme
@@ -89,5 +89,9 @@ ZSH_THEME_RUBY_PROMPT_PREFIX="with%F{red} "
ZSH_THEME_RUBY_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_RVM_PROMPT_OPTIONS="v g"
+# virtualenv prompt settings
+ZSH_THEME_VIRTUALENV_PREFIX=" with%F{red} "
+ZSH_THEME_VIRTUALENV_SUFFIX="%{$reset_color%}"
+
setopt prompt_subst
-PROMPT="${purple}%n%{$reset_color%} in ${limegreen}%~%{$reset_color%}\$(ruby_prompt_info)\$vcs_info_msg_0_${orange} λ%{$reset_color%} "
+PROMPT="${purple}%n%{$reset_color%} in ${limegreen}%~%{$reset_color%}\$(virtualenv_prompt_info)\$(ruby_prompt_info)\$vcs_info_msg_0_${orange} λ%{$reset_color%} "