atom-ruby-test icon indicating copy to clipboard operation
atom-ruby-test copied to clipboard

.zshrc doesn't get loaded

Open jnevelson opened this issue 10 years ago • 6 comments

Atom version 0.211.0, ruby-test version 0.9.11.

Running oh-my-zsh, and notice that my ~/.zshrc isn't loaded automatically, which causes the PATH to not be set, so gems like rspec and bundler aren't available.

The only way I could get it working was to explicitly source my ~/.zshrc (see screenshot below), which obviously is not ideal. Not sure if something is misconfigured on my end, or if this is a legitimate bug.

jnevelson avatar Jun 24 '15 22:06 jnevelson

same issue

libo avatar Jun 29 '15 07:06 libo

I found a solution actually. Add a ~/.zprofile file. In that just write

source ~/.zshrc

That with setting Shell to zsh in the configuration should solve this issue.

libo avatar Jun 29 '15 07:06 libo

same here and @jnevelson source ~/.zshrc worked for me.

abookyun avatar Jul 06 '15 04:07 abookyun

On working on #67, I noticed that the two dash arguments passed to the shell program were in the wrong order: zsh -c -l {command}. It is now corrected to zsh -l -c {command}. Bash didn't care either way. I wonder if zsh did. Try ruby-test 0.9.13, without your workaround. Does it work now?

moxley avatar Aug 30 '15 05:08 moxley

Running 0.9.16, same loading error on minitest. @libo ~/.zprofile worked for me.

fladson avatar Dec 01 '15 01:12 fladson

~/.zshrc is only loaded for interactive shells. Have you tried setting the path in ~/.zshenv, which is loaded for all shell invocations?

dougireton avatar Jan 26 '16 06:01 dougireton