add default gem bindir to PATH

Issue #9 resolved
Jon repo owner created an issue

No description provided.

Comments (3)

  1. Jon reporter

    Initial implementation with the following behaviors:

    • pre-calculate sane default GEM_HOME (always exported) similar to:
    if runtime.GOOS = "windows" {
        GEM_HOME = %USERPROFILE%\.gem\${ruby_exe}\${ruby_version}
    } else {
        GEM_HOME = $HOME/.gem/${ruby_exe}/${ruby_version}
    }
    
    • upon switch to non-system ruby, prepend base PATH with GEM_HOME, new ruby PATH, and canary similar to:
    %GEM_HOME%\bin;${new_ruby_PATH};;;...
        -or-
    $GEM_HOME/bin:${new_ruby_PATH}:::...
    
  2. Log in to comment