mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Updated virtualenvwrapper to auto workon at start; fixed compatibility with last-working-dir plugin.
This commit is contained in:
parent
1b7a3ea99a
commit
210143ea4f
1 changed files with 4 additions and 0 deletions
|
|
@ -41,7 +41,11 @@ if (( $+commands[$virtualenvwrapper] )); then
|
||||||
unset PROJECT_ROOT
|
unset PROJECT_ROOT
|
||||||
unset WORKON_CWD
|
unset WORKON_CWD
|
||||||
fi
|
fi
|
||||||
|
# In case we are using the last-working-dir plugin (virtualenv mucks this up).
|
||||||
|
command -v chpwd > /dev/null 2>&1 && chpwd || true
|
||||||
}
|
}
|
||||||
|
# Go ahead and check to see if the current directory is a virtualenv.
|
||||||
|
workon_cwd
|
||||||
|
|
||||||
# Append workon_cwd to the chpwd_functions array, so it will be called on cd
|
# Append workon_cwd to the chpwd_functions array, so it will be called on cd
|
||||||
# http://zsh.sourceforge.net/Doc/Release/Functions.html
|
# http://zsh.sourceforge.net/Doc/Release/Functions.html
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue