This plugin support for enter and leave events. By default .env
is used for entering, and .out
for leaving. And you can set variable COLORS=true
for enabling colored output.
The environment variables $AUTOENV_IN_FILE
& $AUTOENV_OUT_FILE
can be used
to override the default values for the names of .env
& .out
respectively.
- If you are in the directory
/home/user/dir1
and executecd /var/www/myproject
this plugin will source following files if they exist
/home/user/dir1/.out
/home/user/.out
/home/.out
/var/.env
/var/www/.env
/var/www/myproject/.env
- If you are in the directory
/
and executecd /home/user/dir1
this plugin will source following files if they exist
/home/.env
/home/user/.env
/home/user/dir1/.env
- If you are in the directory
/home/user/dir1
and executecd /
this plugin will source following files if they exist
/home/user/dir1/.out
/home/user/.out
/home/.out
nvm use node
OLDPATH=$PATH
export PATH=`pwd`/node_modules/.bin:$PATH
nvm use system
export PATH=$OLDPATH
Using ZPM
Add Plug horosgrisa/autoenv
into .zshrc
Using oh-my-zsh
Execute git clone https://github.com/horosgrisa/autoenv ~/.oh-my-zsh/custom/plugins/autoenv
. Add autoenv
into plugins array in .zshrc
Using antigen
Add antigen bundle horosgrisa/autoenv
into .zshrc
Using zgen
Add zgen load horosgrisa/autoenv
into .zshrc