Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variables set by gs are overwritten by the shell's profile/startup file. #4

Open
britishtea opened this issue Jul 16, 2013 · 2 comments

Comments

@britishtea
Copy link

The environment variables that gs sets are overwritten by the profile/startup file of the shell it fires up.

This renders gs quite useless when using a tool like rbenv, which does it set up in the profile/startup file of the shell. This file is executed after gs set $PATH, which makes it look something like ~/.rbenv/shims/:~/.rbenv/bin:./gs/bin. This makes it impossible to run executables from gs' gemset that are also installed globally.

@ericgj
Copy link
Contributor

ericgj commented Jul 16, 2013

Hmm, I see what you mean, but it doesn't work like that for me... I get ./gs/bin followed by ~/.rbenv/shims:~/.rbenv/bin in the subshell. rbenv 0.3.0 .

@soveran
Copy link
Owner

soveran commented Dec 19, 2013

@ericgj I'm thinking that it's more a problem with rbenv. As suggested in #6, maybe the best way to deal with this would be to report the issue to the rbenv guys. Let me know if you do it so I can chip in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants