Optional auto-switching#8
Open
estum wants to merge 2 commits into
Open
Conversation
This commit provides the same workflow as chruby's auto.sh. When `auto.sh` script loaded into environment, it makes gem_home to automatically use a `.ruby-gemhome` to get project's `$GEM_HOME` path (`.ruby-gemhome` filename is customizable by the `$GEM_HOME_FILENAME` variable).
Owner
|
One major problem with this is that you cannot have multiple |
There was a problem hiding this comment.
Shouldn't this be
if [[ ! "$preexec_functions" == *gem_home_auto* ]]; then|
@postmodern Would it be possible to detect the chruby auto switching here and set up a trap that does both things? Likewise in chruby's auto we could detect the gem_home auto behavior and set up the trap. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit provides the same workflow as chruby's auto.sh. When
auto.shscript loaded into environment, it makes gem_home toautomatically use a
.ruby-gemhometo get project's$GEM_HOMEpath(
.ruby-gemhomefilename is customizable by the$GEM_HOME_FILENAMEvariable).