This is a real hack but, it works. Because nushell is not posix rvm will not natively work. This uses a login sub shell to change the ruby version with bash, it then get the all the relevant environment variables and loads them into the nushell environment.
23 lines
304 B
Text
23 lines
304 B
Text
use path.nu
|
|
|
|
use fzf.nu *
|
|
use neovim.nu *
|
|
use prompt.nu *
|
|
use sapling.nu *
|
|
use nvm.nu *
|
|
use rvm.nu *
|
|
|
|
nvm use default
|
|
|
|
$env.config = {
|
|
show_banner: false,
|
|
hooks: {
|
|
env_change: {
|
|
PWD: [
|
|
{|_, after| nvm dir-hook $after }
|
|
{|_, after| rvm-dir-hook $after }
|
|
]
|
|
}
|
|
}
|
|
}
|
|
|