1
0
Fork 0

Add support for kennethreitz/autoenv

pull/497/head
Chris Rose 11 years ago
parent a4bacb8bb9
commit d5dbc9648c

@ -0,0 +1,16 @@
Autoenv
=======
Provides integration for the [autoenv][1] shell environment settings
tool.
Settings
--------
By default this plugin finds autoenv as it's installed by Mac homebrew,
in `/usr/local/opt/autoenv/activate.sh`. To find the autoenv script in
another location, add the following line to *zpreztorc*:
zstyle ':prezto:module:autoenv' script PATH_TO_AUTOENV_ACTIVATE
[1]: https://github.com/kennethreitz/autoenv

@ -0,0 +1,14 @@
# silently falls back to '' if homebrew is not installed
_autoenv_base=$(brew --prefix 2>/dev/null)
zstyle -s ':prezto:module:autoenv' script "_autoenv_script" || _autoenv_script=${_autoenv_base}/opt/autoenv/activate.sh
if [[ -s $_autoenv_script ]]; then
source $_autoenv_script
unset _autoenv_script
unset _autoenv_base
else
unset _autoenv_script
unset _autoenv_base
return 1
fi
Loading…
Cancel
Save