gs icon indicating copy to clipboard operation
gs copied to clipboard

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

Open britishtea opened this issue 11 years ago • 2 comments

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.

britishtea avatar Jul 16 '13 18:07 britishtea

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 avatar Jul 16 '13 23:07 ericgj

@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.

soveran avatar Dec 19 '13 16:12 soveran