atomenv package
Loads environment variables from .atomenv.json
Usage
Create .atomenv.json
in the directory that is an atom project.
{
"env": {
"GOPATH": "$ATOM_PROJECT_PATH/_vendor:$HOME",
"FOO": "foooobaaaaa"
}
}
or .atomenv.cson
env:
GOPATH: "$ATOM_PROJECT_PATH/_vendor:$HOME"
FOO: "foooobaaaaa"
Run atomenv:load
command.
Note: $ATOM_PROJECT_PATH
is applied automatically by this package. And you can refer to other environment variables by usign $
prefix. ex) $HOME
.
Automatically loading
If you want to load when window opens, You can use atom auto-run packages with this.
License
MIT License.