fix(nushell): fully fix config

This commit is contained in:
Artur Manuel 2025-01-29 20:11:51 +00:00
commit 69abdc09fe
2 changed files with 17 additions and 20 deletions

View file

@ -21,4 +21,4 @@ mkdir ($nu.data-dir | path join "vendor/autoload")
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu") starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
zoxide init nushell | save -f ($nu.data-dir | path join "vendor/autoload/zoxide.nu") zoxide init nushell | save -f ($nu.data-dir | path join "vendor/autoload/zoxide.nu")
alias nos = "nh os" alias nos = nh os

View file

@ -17,24 +17,21 @@
# You can remove these comments if you want or leave # You can remove these comments if you want or leave
# them for future reference. # them for future reference.
$env = { $env.config = {
config = { hooks: {
hooks: { pre_prompt: [{ ||
pre_prompt: [{ || if (which direnv | is-empty) {
if (which direnv | is-empty) { return
return }
}
direnv export json | from json | default {} | load-env
direnv export json | from json | default {} | load-env if 'ENV_CONVERSIONS' in $env and 'PATH' in $env.ENV_CONVERSIONS {
if 'ENV_CONVERSIONS' in $env and 'PATH' in $env.ENV_CONVERSIONS { $env.PATH = do $env.ENV_CONVERSIONS.PATH.from_string $env.PATH
$env.PATH = do $env.ENV_CONVERSIONS.PATH.from_string $env.PATH }
} }]
}]
}
table: {
mode = "heavy"
}
show_banner: false
} }
LS_COLOURS = "" table: {
mode = "heavy"
}
show_banner: false
} }