mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
Add virtualenv to prompt
This commit is contained in:
parent
8850ae9d1a
commit
ad029efd74
2 changed files with 7 additions and 0 deletions
|
|
@ -59,6 +59,12 @@ prompt_build_simple() {
|
||||||
echo -n "${HOSTNAME%%.local} "
|
echo -n "${HOSTNAME%%.local} "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# add venv info
|
||||||
|
set_color -p yellow
|
||||||
|
if [[ -n "$VIRTUAL_ENV" ]]; then
|
||||||
|
echo -n "${VIRTUAL_ENV##*/} "
|
||||||
|
fi
|
||||||
|
|
||||||
set_color -p green
|
set_color -p green
|
||||||
prompt_pwd
|
prompt_pwd
|
||||||
|
|
||||||
|
|
|
||||||
1
shell/venv
Executable file
1
shell/venv
Executable file
|
|
@ -0,0 +1 @@
|
||||||
|
export VIRTUAL_ENV_DISABLE_PROMPT='y'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue