Add virtualenv to prompt

This commit is contained in:
Loic Nageleisen 2017-10-31 16:44:10 +01:00
parent 8850ae9d1a
commit ad029efd74
2 changed files with 7 additions and 0 deletions

View file

@ -59,6 +59,12 @@ prompt_build_simple() {
echo -n "${HOSTNAME%%.local} "
fi
# add venv info
set_color -p yellow
if [[ -n "$VIRTUAL_ENV" ]]; then
echo -n "${VIRTUAL_ENV##*/} "
fi
set_color -p green
prompt_pwd

1
shell/venv Executable file
View file

@ -0,0 +1 @@
export VIRTUAL_ENV_DISABLE_PROMPT='y'