1
0
Fork 0

make python icon yellow in autopyenv

This commit is contained in:
Luca Bilke 2022-08-05 08:58:32 +02:00
parent 283e344c7d
commit 56cd094693
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ function chpwd_activate(){
for pydir in $(ls $PYENV_DIR); do
if [[ "$(pwd|sed -e s@/@_@g|cut -c2-)" =~ "^${pydir}$" ]] || [[ "r-$(pwd|sed -e s@/@_@g|cut -c2-)" =~ "^${pydir}(_.+)?$" ]]; then
if [ "x$VIRTUAL_ENV" != "x$PYENV_DIR/$pydir" ]; then
export PS1=" $PS1"
export PS1=" %F{yellow}%F{reset} $PS1"
export VIRTUAL_ENV_DISABLE_PROMPT=1
source "$PYENV_DIR/$pydir/bin/activate"
fi