aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}