Conversation
|
Sounds good to me. I think we will want to separately add this per the rbenv docs: export PATH="$HOME/.rbenv/bin:$PATH" |
|
Reverting is best to get everything to working again. But we should consider this from the Zsh docs:
And maybe figure out how we can adhere to that. Or, it's possible that we can't adhere because of the OSX |
|
Is that an OS X bug or a Laptop bug? https://github.com/thoughtbot/laptop/blob/master/mac#L81 |
|
Looks like we started moving |
|
@derekprior @croaky if, instead of reverting this commit, you revert to having |
|
When I went from Mountain Lion to Mavericks and restored |
|
I didnt set my machine up with laptop. I had addressed the zshenv issue by making Then I did something (probably an OS update?) that restored the permissions. That's how I noticed things were broken. Then I noticed the TL;DR, I think if we want to use |
|
I'm confused. What is the default state of zsh on OS X, before a laptop run? Based on the thread I linked, it sounded like |
|
The default state, best I can tell, is that both The earlier "fix" was to |
|
Okay; in that case, I think the real fix might be to just remove |
|
I've moved |
|
Just verified that a brand new OS install only has |
|
@gylaz are you absolutely sure that a new install only has |
|
Yes. Clean install of Yosemite only had I do have After the clean install, I left |
|
Tim Pope's second recommendation:
Seems more in line with what the zsh docs recommend.
Just to verify: you did a clean install of OS X Yosemite, you're using the thoughtbot dotfiles, and everything is working correctly? |
|
I've checked with a couple of Mavericks users and they all say they don't have an |
|
@derekprior you probably got it by following advice like Tim Pope's or using laptop: https://github.com/thoughtbot/laptop/blob/96c95f1df858a7171c6a98514b69311f51ca1b14/mac#L90 |
|
Hm. I really thought I moved it to zpofile, but I guess I might have done this instead. What should we do about it going forward? It seems like we should close this but should also try and help people who got into this mess by following our previous advice, right? Do we check for |
This is correct. |
|
@gylaz since you're in a pretty clean situation, could you try out tmux as well? Can you try running some things in a tmux session for a Rails app, like rspec? Maybe run rspec from Vim within tmux? I just want to make sure all the pieces are lined up correctly. |
What if we check for At the end of export ZSHENV_PATH="$PATH"In if [ "$PATH" != "$ZSHENV_PATH"]; then
printf "Warning: PATH changed after zshenv."
fi@thoughtbot/shell thoughts? |
|
@jferris I am using thoughtbot dotfiles on both of my machines with Yosemite. I use tmux also. Everything works as expected with |
|
Okay, so I think this pull request can be closed. We can potentially improve the dotfiles by detecting |
* Using zshrc causes path_helper to override PATH from zshenv * We set up rbenv among other things in zshenv thoughtbot/dotfiles#307
|
One thing I just noticed is that there are duplicate entries in my path when I print it via vim Here's what my path is from the console: And here it is from This could be because of the |
* Using zshrc causes path_helper to override PATH from zshenv * We set up rbenv among other things in zshenv thoughtbot/dotfiles#307
|
I don't think |
@jferris I'm not sure I understand what you mean. I'm not doing any extra path loading besides what vim does. I printed out |
|
@gylaz if you put a |
|
Yes, it does. I put an |
|
@gylaz that explains why entries are in there twice. First, your shell runs and exports your @thoughtbot/shell does that sound correct? I think that if we end up with a situation where |
|
@jferris I had this problem too.. I fixed it by changing the contents of my |
* Using zshrc causes path_helper to override PATH from zshenv * We set up rbenv among other things in zshenv thoughtbot/dotfiles#307
* Using zshrc causes path_helper to override PATH from zshenv * We set up rbenv among other things in zshenv thoughtbot/dotfiles#307
* Using zshrc causes path_helper to override PATH from zshenv * We set up rbenv among other things in zshenv thoughtbot/dotfiles#307
This reverts commit 6a1bd18. On OS X,
path_helperwas clobbering our expected PATH value because it is called in/etc/zshrc.Fixes #303. See discussion there in and in #305.