prevent workon CD in virtualenvwrapper zsh plugin
This commit is contained in:
parent
fa31fdc0f9
commit
1020104980
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ workon_cwd() {
|
|||
|
||||
[ -n "$ENV_NAME" ] && [ ! "$(realpath "$VIRTUAL_ENV" 2>/dev/null)" = "$(realpath "$WORKON_HOME/$ENV_NAME")" ] && {
|
||||
if [ -e "$WORKON_HOME/$ENV_NAME/bin/activate" ]; then
|
||||
workon "$ENV_NAME" && export CD_VIRTUAL_ENV="$ENV_NAME"
|
||||
workon -n "$ENV_NAME" && export CD_VIRTUAL_ENV="$ENV_NAME"
|
||||
elif [ -e "$ENV_NAME/bin/activate" ]; then
|
||||
source "$ENV_NAME/bin/activate" && export CD_VIRTUAL_ENV="$ENV_NAME"
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue