From 0c759319369f5a45a76e62f53dc96e38f1022666 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Wed, 3 Aug 2022 11:22:38 +0200 Subject: [PATCH] fix autopyenv regex --- .local/share/zsh/plugins/autopyenv/autopyenv.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/share/zsh/plugins/autopyenv/autopyenv.plugin.zsh b/.local/share/zsh/plugins/autopyenv/autopyenv.plugin.zsh index 7fb9c156f..ede1910a8 100644 --- a/.local/share/zsh/plugins/autopyenv/autopyenv.plugin.zsh +++ b/.local/share/zsh/plugins/autopyenv/autopyenv.plugin.zsh @@ -1,7 +1,7 @@ PYENV_DIR="${PYENVS_HOME:-${XDG_DATA_HOME:-$HOME/.local/share}/pyenvs}" function chpwd_activate(){ for pydir in $(ls $PYENV_DIR); do - if [[ $(pwd|sed -e s@/@_@g) =~ "^$pydir" ]]; then + if [[ $(pwd|sed -e s@/@_@g) =~ "^$pydir$" ]]; then if [ "x$VIRTUAL_ENV" != "x$PYENV_DIR/$pydir" ]; then # echo "Activating virtual env $pydir" source "$PYENV_DIR/$pydir/bin/activate"