feat: add nushell integration config
This commit is contained in:
parent
03a2702281
commit
583cdd7b00
4 changed files with 46 additions and 2 deletions
15
home-manager/stvnliu/shells/nushell/init/config.nu
Normal file
15
home-manager/stvnliu/shells/nushell/init/config.nu
Normal file
|
@ -0,0 +1,15 @@
|
|||
$env.config = {
|
||||
show_banner: false,
|
||||
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
|
||||
}
|
||||
}]
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue