From 601c945e690038b14f922807ab909f57c3a356fb Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Thu, 2 Mar 2023 17:10:33 +0100 Subject: python venv from wrapper --- home-dots/dot-bashrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'home-dots') diff --git a/home-dots/dot-bashrc b/home-dots/dot-bashrc index aefd08b..5ddf3a0 100644 --- a/home-dots/dot-bashrc +++ b/home-dots/dot-bashrc @@ -34,10 +34,11 @@ git_current_branch() { echo "  ${ref#refs/heads/}" } +source /usr/bin/virtualenvwrapper_lazy.sh python_current_venv() { local orange="\[\e[0;91m\]" - if [[ -n ${VIRTUAL_ENV_PROMPT} ]]; then - echo " ${orange}${VIRTUAL_ENV_PROMPT}" + if [[ -n ${VIRTUAL_ENV} ]]; then + echo " ${orange} $(basename ${VIRTUAL_ENV})" fi } -- cgit v1.2.3