Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
0be21f02
Commit
0be21f02
authored
Oct 09, 2015
by
Robby Russell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4440 from apjanke/autoenv-homebrew
autoenv: support homebrew-installed autoenv
parents
01448020
c146853a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
7 deletions
+20
-7
autoenv.plugin.zsh
plugins/autoenv/autoenv.plugin.zsh
+20
-7
No files found.
plugins/autoenv/autoenv.plugin.zsh
View file @
0be21f02
# Activates autoenv or reports its failure
# Activates autoenv or reports its failure
if
!
source
$HOME
/.autoenv/activate.sh 2>/dev/null
;
then
()
{
echo
'-------- AUTOENV ---------'
if
!
type
autoenv_init
>
/dev/null
;
then
echo
'Could not find ~/.autoenv/activate.sh.'
for
d
(
~/.autoenv /usr/local/opt/autoenv
)
;
do
echo
'Please check if autoenv is correctly installed.'
if
[[
-e
$d
/activate.sh
]]
;
then
echo
'In the meantime the autoenv plugin is DISABLED.'
autoenv_dir
=
$d
echo
'--------------------------'
break
return
1
fi
done
if
[[
-z
$autoenv_dir
]]
;
then
cat
<<
END
>&2
-------- AUTOENV ---------
Could not locate autoenv installation.
Please check if autoenv is correctly installed.
In the meantime the autoenv plugin is DISABLED.
--------------------------
END
return
1
fi
fi
fi
}
[[
$?
!=
0
]]
&&
return
$?
# The use_env call below is a reusable command to activate/create a new Python
# The use_env call below is a reusable command to activate/create a new Python
# virtualenv, requiring only a single declarative line of code in your .env files.
# virtualenv, requiring only a single declarative line of code in your .env files.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment