From 1b8c1f177bed3723d12deb7ef5ea9e837a96de33 Mon Sep 17 00:00:00 2001 From: Roman Perepelitsa Date: Thu, 14 Mar 2019 19:55:13 +0100 Subject: [PATCH 1/2] fix prompt_virtualenv --- powerlevel9k.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 3f6da331..5bcef531 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -1782,7 +1782,7 @@ prompt_vi_mode() { # https://virtualenv.pypa.io/en/latest/ prompt_virtualenv() { if [[ -n "$VIRTUAL_ENV" ]]; then - "$1_prompt_segment" "$0" "$2" "blue" "$DEFAULT_COLOR" "${virtualenv_path:t}" 'PYTHON_ICON' + "$1_prompt_segment" "$0" "$2" "blue" "$DEFAULT_COLOR" "${VIRTUAL_ENV:t}" 'PYTHON_ICON' fi } From 6defc510739993a03148a0be623c05bd64d87e96 Mon Sep 17 00:00:00 2001 From: Roman Perepelitsa Date: Thu, 14 Mar 2019 19:59:19 +0100 Subject: [PATCH 2/2] another shot in the dark --- powerlevel9k.zsh-theme | 1 + 1 file changed, 1 insertion(+) diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 5bcef531..b48d13e2 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -2257,6 +2257,7 @@ typeset -gi _P9K_ENABLED=0 prompt_powerlevel9k_setup() { prompt_powerlevel9k_teardown + prompt_opts=(cr percent sp subst) setopt nopromptbang prompt{cr,percent,sp,subst} add-zsh-hook precmd powerlevel9k_prepare_prompts