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
shell atom-editor


source to share


No one has answered this question yet

Check out similar questions:

3513
Check if a directory exists in a shell script
1592
How to copy a folder from remote to local?
1554
What does "2> & 1" mean in the shell?
1324
How do I prompt for Yes / No / Cancel input in a Linux shell script?
1147
How do I use SSH to run a shell script on a remote machine?
1010
Calling shell commands from Ruby
994
Date date YYYY-MM-DD in shell script
755
A shell command to sum integers, one per line?
748
Check for an input argument in your bash shell script
374
How do I call a shell script from another shell script?



All Articles
Loading...
X
Show
Funny
Dev
Pics