Changes for page VirtualEnv
Last modified by David De La Harpe Golden on 2026/05/17 17:37
From version
6.1
edited by David De La Harpe Golden
on 2026/05/17 16:14
on 2026/05/17 16:14
Change comment:
There is no comment for this version
To version
7.1
edited by David De La Harpe Golden
on 2026/05/17 16:16
on 2026/05/17 16:16
Change comment:
There is no comment for this version
Summary
Details
- Page properties
-
- Content
-
... ... @@ -46,4 +46,15 @@ 46 46 {{/code}} 47 47 48 48 49 +## Shell Prompt ## 49 49 51 +I have a fancy non-default prompt in my ##~/.bashrc## that shows a little snake if in a python vm 52 + 53 +{{code language="bash"}} 54 +# venvs themselves prefix these days, new ones created by stdlib honor this disable, allowing us to customize 55 +export VIRTUAL_ENV_DISABLE_PROMPT=1 56 +PS1='${debian_chroot:+\[\033[01;33m\]🌲($debian_chroot)\[\033[00m\]}${VIRTUAL_ENV:+\[\033[01;36m\]🐍($(basename $VIRTUAL_ENV))\[\033[00m\]}\[\033[38;5;108m\]\u@\h\[\033[38;5;128m\]:\[\033[38;5;139m\]\w\[\033[38;5;129m\]\$\[\033[00m\] ' 57 +{{/code}} 58 + 59 + 60 +