Dotfiles/site-modules/core/files/nushell/config.nu
Ade Attwood 42cbeed7de fix(nu): support windows nicely
The main thing we are doing is setting the `HOME` and `USER` env variables so
we can use comon variables over linux and windows.

There is also a windows wezterm issue `shell_integration.osc133` feature needs
to be disabled. This will stop the prompt adding a new line on every char typed
into the prompt.
2025-07-25 09:03:11 +01:00

27 lines
466 B
Text

if ((sys host | get name) == "Windows") {
$env.HOME = $env.USERPROFILE
$env.USER = $env.USERNAME
}
use path.nu *
use fzf.nu *
use neovim.nu *
use prompt.nu *
use sapling.nu *
use nvm.nu *
$env.config = {
show_banner: false,
hooks: {
env_change: {
PWD: [
{|_, after| nvm dir-hook $after }
{|_, after| node-modules-dir-hook $after }
]
}
}
}
$env.config.show_banner = false
$env.config.shell_integration.osc133 = false