Postmodern
Postmodern
@deivid-rodriguez guessing the exception is happening during jruby startup, and not from the code we pipe into the ruby. Is this a chicken and egg problem, where we need to...
That's because when chruby first invokes jruby, `GEM_HOME` isn't set so jruby can't find bundler.
Please paste the output of the [bug_report.sh](https://raw.githubusercontent.com/postmodern/chruby/master/scripts/bug_report.sh) script so we can get some diagnostics.
See the [chruby_default](https://github.com/postmodern/chruby/tree/chruby_default) branch.
Some thoughts from @havenwood in IRC. 1. Should we use an agnostic variable name to promote compatibility? `RUBY_DEFAULT_VERSION` instead of `CHRUBY_DEFAULT`? 2. Should we store the default version in a...
chruby-exec does try to [determine if it's running in an interactive terminal](https://github.com/postmodern/chruby/blob/master/bin/chruby-exec#L38). If it's working for `myuser` but not `root`, I'm going to guess that root has some special bash...
You would have to write your own post-switching commands system.
@bronson right, the real problem is Bash doesn't support something like `preexec_functions`. You have to either inject a command into `PROMPT_COMMAND` (only works in interactive mode) or use `trap DEBUG`...
@ilikepi providing a function would allow users to manually set the `trap DEBUG` command. Manually injection into `trap DEBUG` is still impossibly/difficult unless `set -T` is set.
Can you provide an example of how it's not working?