mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-16 02:27:03 +01:00
Virtualenvwrapper lookup in PATH
Virtualenwrapper plugin now looks for virtualenvwrapper executable in PATH using "command -v" instead of looking in hard-coded locations
This commit is contained in:
parent
c2ae9e09ca
commit
c56158e025
1 changed files with 3 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
WRAPPER_FOUND=0
|
WRAPPER_FOUND=0
|
||||||
for wrapsource in "/usr/bin/virtualenvwrapper.sh" "/usr/local/bin/virtualenvwrapper.sh" "/etc/bash_completion.d/virtualenvwrapper" ; do
|
for wrapsource in "virtualenvwrapper.sh" "virtualenvwrapper"; do
|
||||||
if [[ -e $wrapsource ]] ; then
|
wrap_path=`command -v $wrapsource`
|
||||||
|
if [[ -e $wrap_path ]] ; then
|
||||||
WRAPPER_FOUND=1
|
WRAPPER_FOUND=1
|
||||||
source $wrapsource
|
source $wrapsource
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue