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.
24 lines
357 B
Text
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 }
|
|
]
|
|
}
|
|
}
|
|
}
|
|
|