gs
gs copied to clipboard
Environment variables set by gs are overwritten by the shell's profile/startup file.
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.
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 .
@ericgj I'm thinking that it's more a problem with rbenv. As suggested in https://github.com/soveran/gs/issues/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.