Postmodern
Postmodern
Make sure that you exported `HOME`, so the bash process that runs chruby also runs in an test home directory.
@JeanMertz ah ha, I see what you mean. Perhaps `chruby_auto` should respect `$PREFIX` and stop once it reaches the `$PREFIX`.
On Fedora Linux, `/etc/zprofile` will source `/etc/profile` (and thus `/etc/profile.d/`) with ksh emulation turned on.
Any objections to enabling `set -T` by default?
After doing some testing, the `trap DEBUG` and `preexec_functions` hook are being inherited by the sub-shell. ### bash ``` $ trap -p DEBUG trap -- '[[ "$BASH_COMMAND" != "$PROMPT_COMMAND" ]]...
This is a good question. Since `RUBIES` is an Array variable it cannot be exported, so it will never be passed to a sub-shell.
@Sirupsen I don't think we could easily pass `RUBIES` between shells. We could however add a simple empty check, in case chruby is loaded twice or the user defines `RUBIES`...
Should we still auto-populate `RUBIES` with `/opt/rubies/*` or `~/.rubies/*`, or should we assume the user has explicitly set `RUBIES`.
Inspired by #212.
Of course this will misbehave if `$HOME` contains spaces.