mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-09 02:24: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
|
||||
for wrapsource in "/usr/bin/virtualenvwrapper.sh" "/usr/local/bin/virtualenvwrapper.sh" "/etc/bash_completion.d/virtualenvwrapper" ; do
|
||||
if [[ -e $wrapsource ]] ; then
|
||||
for wrapsource in "virtualenvwrapper.sh" "virtualenvwrapper"; do
|
||||
wrap_path=`command -v $wrapsource`
|
||||
if [[ -e $wrap_path ]] ; then
|
||||
WRAPPER_FOUND=1
|
||||
source $wrapsource
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue