- changed title to add `uru nil` that switches to base PATH
add `uru nil` that switches to base PATH
For environments without a system
ruby (ruby added to PATH
at shell startup) there is no way to cause uru to switch the the users base PATH
without restarting the shell.
In that scenario, once uru places a ruby on PATH
there is no easy way to revert to a clean pre-uru-ruby-infected base PATH
.
Comments (3)
-
reporter -
reporter Should an existing
GEM_HOME
be persisted in the registry for use withuru nil
or shoulduru nil
simply resetPATH
and remove/nullGEM_HOME
?Definitely not in the registry or a standalone session file.
Perhaps store any initial
GEM_HOME
into a non-persistedURU_ORIG_GEM_HOME
envar? -
reporter Initial
uru nil
implementation. Closes#37Removes any non-system ruby from PATH and sets GEM_HOME to an empty string. This GEM_HOME behavior will clobber any original "system" GEM_HOME the user may have set as part of their shell initialization. Investigate persisting original GEM_HOME in a URU_ORIGINAL_GEM_HOME envar if current behavior causes problems.
→ <<cset f605df8a46dd>>
- Log in to comment