Postmodern
Postmodern
What does `chruby-exec --version` return? This should have been fixed in >= 0.3.6.
I cannot seem to reproduce this with chruby 0.3.8 on my Fedora system. ``` $ git clone https://github.com/postmodern/test.git $ cd test/ruby/bundler $ cat
@ronen also could you post `which chruby-exec` and `cat $(which chruby-exec)`. The fact that removing `source /path/to/chruby.sh` caused `chruby-exec` to to not find chruby makes me think you might be...
I could do not reproduce your last example: ``` $ SHELL=`which bash` bash -c 'chruby-exec 2.1.3 -- date 2>&1 | cat' Fri Oct 24 15:56:22 PDT 2014 ``` However, I...
@wryfi please see master instead. https://github.com/postmodern/chruby/blob/master/bin/chruby-exec The first `source` of `chruby.sh` is just to load `$CHRUBY_VERSION`. Below we craft a command that checks for `chruby`, `source`s `chruby.sh` if not present,...
In e9e81df20e9b821f3cdb13c946e8bdd368453e22 we added support for detecting `RUBY_ENGINE_VERSION` and use that in the `GEM_HOME` (falling back to `RUBY_VERSION` if `RUBY_ENGINE_VERSION` isn't present). I just need to work on releasing 0.4.0.
Are there any downsides to using both `preexec_functions` and `chpwd_functions`?
While `/etc/bash.bashrc` is guaranteed to be loaded by all types of bash instances, it's created by the package manager and shouldn't be edited directly. That's why I choose `/etc/profile.d/` instead.
What is `head -n1 home/rahil/rails_dir/bin/spring`? I suspect spring is running under system ruby instead of `.rubies/ruby-2.3.0`.
auto-switching breaks down for things that do not use the shell (cron, apache, etc). I recommend simply installing your desired ruby via the package manager or into `/usr/local` via ruby-install....