feat(nushell): add some config options

This commit is contained in:
Artur Manuel 2025-01-29 19:21:32 +00:00
commit d2eaf9c064
2 changed files with 29 additions and 11 deletions

View file

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