Postmodern

Results 523 comments of Postmodern

What does `which foreman` return? Definitely looks like `foreman` _was_ installed, but rubygems is complaining that the `.gem/ruby/2.6.0/bin` directory ins't in `PATH` (2.6.0 is the Ruby ABI version for 2.6.6p146,...

What would the use case be? `cd /project; command` should be enough to trigger auto-loading?

Why can't you do `cd /project && $SHELL` or `bash -l -c 'cd /project && ./bin/foo'`?

To put this into perspective, this is all that `chruby-exec` does under the hood: https://github.com/postmodern/chruby/blob/master/bin/chruby-exec#L36-L40 Perhaps we could add a `chruby-auto-exec` command, but I think it's possibly only using the...

@tamird how would that be different from `cd path && command`?

For starting cron jobs, you really should specify which SHELL you want to run the command under, and have everything preconfigured. Otherwise, you become depending on an rvm-like command for...

If you want your cron job to run in an ideal shell environment, run `$SHELL -l -c "..."` with any additional configuration at the top of the cron file or...

True, `chruby-exec` hides the `$SHELL -l -c '...'` part, but it still requires you set `SHELL` and have your shell configured as desired.

What about users who do not want auto-switching ever enabled?

To avoid adding yet another command, I was thinking of adding a `--auto` option. There needs to be a way for users to explicitly specify they want to use `.ruby-version`.