Now all the terminal themes will adapt with the system theme. Like other apps it will not do this automatically, however needing to restart the terminal session is not to much is an issue.
32 lines
571 B
Text
32 lines
571 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
|
|
|
|
if $env.OS_THEME == "Light" {
|
|
use std/config light-theme
|
|
$env.config.color_config = (light-theme)
|
|
}
|