mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 13:50:09 +00:00
Fix default location of the virtualenvwrapper script (#6348)
The `virtualenvwrapper` script has been relocated to `/usr/local/bin/virtualenvwrapper.sh`. Update the plugin to look in the new location first. See: http://virtualenvwrapper.readthedocs.io/en/latest/#introduction to confirm the change in location for this script. This addresses issue #3047 where the solution was to source this file from your zshrc.
This commit is contained in:
parent
d02d008579
commit
0c63909ad3
1 changed files with 7 additions and 0 deletions
|
@ -6,6 +6,13 @@ if (( $+commands[$virtualenvwrapper] )); then
|
|||
unsetopt equals
|
||||
source ${${virtualenvwrapper}:c}
|
||||
}
|
||||
elif [[ -f "/usr/local/bin/virtualenvwrapper.sh" ]]; then
|
||||
function {
|
||||
setopt local_options
|
||||
unsetopt equals
|
||||
virtualenvwrapper="/usr/local/bin/virtualenvwrapper.sh"
|
||||
source "/usr/local/bin/virtualenvwrapper.sh"
|
||||
}
|
||||
elif [[ -f "/etc/bash_completion.d/virtualenvwrapper" ]]; then
|
||||
function {
|
||||
setopt local_options
|
||||
|
|
Loading…
Reference in a new issue