Dotfiles/site-modules/core/files/nushell/config.nu
Ade Attwood c482f7a612 chore(nu): automatically set the node_modules bin dir on cd
When we are moving around the file system I always want to be able to use the
locally installed executables from my node modules.

Sometimes versions of programs like prettier have different outcomes. I always
want to be using the local version rather than the system installed version.
2025-01-21 08:22:40 +00:00

24 lines
357 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 }
{|_, after| node-modules-dir-hook $after }
]
}
}
}