nushell: set env in config.nu file
This commit is contained in:
parent
46c83c07b9
commit
709aaab1a5
3 changed files with 23 additions and 22 deletions
|
|
@ -1,3 +1,18 @@
|
|||
load-env {
|
||||
"ENV_CONVERSIONS": {
|
||||
"PATH": {
|
||||
"from_string": ({|s| $s | split row (char esep) })
|
||||
"to_string": ({|v| $v | str join (char esep) })
|
||||
}
|
||||
}
|
||||
"FOO": "BAR"
|
||||
"LIST_VALUE": [
|
||||
"foo"
|
||||
"bar"
|
||||
]
|
||||
"PROMPT_COMMAND": ({|| "> "})
|
||||
}
|
||||
|
||||
$env.config.display_errors.exit_code = false
|
||||
$env.config.hooks.pre_execution = [
|
||||
({|| "pre_execution hook"})
|
||||
|
|
|
|||
|
|
@ -1,17 +1,2 @@
|
|||
$env.FOO = 'BAR'
|
||||
|
||||
|
||||
load-env {
|
||||
"ENV_CONVERSIONS": {
|
||||
"PATH": {
|
||||
"from_string": ({|s| $s | split row (char esep) })
|
||||
"to_string": ({|v| $v | str join (char esep) })
|
||||
}
|
||||
}
|
||||
"FOO": "BAR"
|
||||
"LIST_VALUE": [
|
||||
"foo"
|
||||
"bar"
|
||||
]
|
||||
"PROMPT_COMMAND": ({|| "> "})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue