summaryrefslogtreecommitdiff
path: root/themes/gnzh.zsh-theme
diff options
context:
space:
mode:
authorrakeshgm <rakeshgm@redhat.com>2024-09-19 00:12:18 +0530
committerGitHub <noreply@github.com>2024-09-18 20:42:18 +0200
commitd91944d47e6f4163da16e6fa71a41e35e2af191e (patch)
treee17e397c7c5e217d88ca70d85983d8733439e576 /themes/gnzh.zsh-theme
parent865291cb7af2fef7e67128fd4294f3ffa9b08c3d (diff)
downloadzsh-d91944d47e6f4163da16e6fa71a41e35e2af191e.tar.gz
zsh-d91944d47e6f4163da16e6fa71a41e35e2af191e.tar.bz2
zsh-d91944d47e6f4163da16e6fa71a41e35e2af191e.zip
feat(gnzh): add virtualenv prompt (#12666)
Diffstat (limited to 'themes/gnzh.zsh-theme')
-rw-r--r--themes/gnzh.zsh-theme5
1 files changed, 4 insertions, 1 deletions
diff --git a/themes/gnzh.zsh-theme b/themes/gnzh.zsh-theme
index ca62320e2..0297a6f6f 100644
--- a/themes/gnzh.zsh-theme
+++ b/themes/gnzh.zsh-theme
@@ -30,8 +30,9 @@ local return_code="%(?..%F{red}%? ↵%f)"
local user_host="${PR_USER}%F{cyan}@${PR_HOST}"
local current_dir="%B%F{blue}%~%f%b"
local git_branch='$(git_prompt_info)'
+local venv_prompt='$(virtualenv_prompt_info)'
-PROMPT="╭─${user_host} ${current_dir} \$(ruby_prompt_info) ${git_branch}
+PROMPT="╭─${venv_prompt}${user_host} ${current_dir} \$(ruby_prompt_info) ${git_branch}
╰─$PR_PROMPT "
RPROMPT="${return_code}"
@@ -39,5 +40,7 @@ ZSH_THEME_GIT_PROMPT_PREFIX="%F{yellow}‹"
ZSH_THEME_GIT_PROMPT_SUFFIX="› %f"
ZSH_THEME_RUBY_PROMPT_PREFIX="%F{red}‹"
ZSH_THEME_RUBY_PROMPT_SUFFIX="›%f"
+ZSH_THEME_VIRTUALENV_PREFIX="%F{red}("
+ZSH_THEME_VIRTUALENV_SUFFIX=")%f "
}