aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-03-02 17:10:33 +0100
committerOscar Najera <hi@oscarnajera.com>2023-03-03 11:54:47 +0100
commit601c945e690038b14f922807ab909f57c3a356fb (patch)
tree7d1727ec40d777d68a19b4a0e5feb695f3fb0644
parent3f0c451eb4f3571133c2c0f3a208de79b632de97 (diff)
downloaddotfiles-601c945e690038b14f922807ab909f57c3a356fb.tar.gz
dotfiles-601c945e690038b14f922807ab909f57c3a356fb.tar.bz2
dotfiles-601c945e690038b14f922807ab909f57c3a356fb.zip
python venv from wrapper
-rw-r--r--home-dots/dot-bashrc5
1 files changed, 3 insertions, 2 deletions
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
}