Cloned from horosgrisa/autoenv, just make it compatible to bash.
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.
- 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
OLDPATH=$PATH
export PATH=`pwd`/node_modules/.bin:$PATH
if [ -n "$OLDPATH" ]; then
export PATH=$OLDPATH
unset OLDPATH
fi