mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
fix
This commit is contained in:
parent
085d21617d
commit
6a58797dc6
1 changed files with 1 additions and 4 deletions
|
|
@ -22,10 +22,7 @@ if [[ ! $DISABLE_NODEENV_CD -eq 1 ]]; then
|
|||
fi
|
||||
source $NODEENV_NAME/bin/activate && export CD_NODEENV="$NODEENV_NAME"
|
||||
if [[ "$NODEENV_NAME" != "" ]]; then
|
||||
# Activate the environment only if it is not already active
|
||||
if [[ "$NODE_VIRTUAL_ENV" != "$WORKON_HOME/$NODEENV_NAME" ]]; then
|
||||
source $NODEENV_NAME/bin/activate && export CD_NODEENV="$NODEENV_NAME"
|
||||
fi
|
||||
source $NODEENV_NAME/bin/activate && export CD_NODEENV="$NODEENV_NAME"
|
||||
elif [ $CD_NODEENV ]; then
|
||||
# We've just left the repo, deactivate the environment
|
||||
# Note: this only happens if the virtualenv was activated automatically
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue