Get Atom to read $ PATH from shell

$PATH

you can read Atom for each file by installing process.env['PATH'] = {{PATH_here}}

. This is useful for using plugins like linters that rely on system-installed binaries.

However mine $PATH

is not completely installed in mine .zshrc

. I use chruby

, nvm

and pyenv

, which dynamically set their directories on mine $PATH

every time I open a shell (due to some configurations in mine .zshrc

).

This makes it so that I can't just load $PATH

from my .zshrc
: the file must be interpreted and commands started, for the complete $PATH

one to be determined.

Something seemed to /usr/local/bin/zsh -c "source ${HOME}/.zshrc && echo $PATH"

be my first bet, but it doesn't work. Is there a way to do this at all?

+3


source to share





All Articles