Dotfiles/site-modules/core/files/nushell/config.nu
Ade Attwood de1aefac38 chore(shell): add module load the rvm env into nushell
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.
2025-01-11 07:23:58 +00:00

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 }
]
}
}
}