mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-08-16 17:00:32 +03:00
use 0.85 valid syntax (#615)
This commit is contained in:
parent
79fcd05525
commit
d459a7de1d
@ -6,7 +6,7 @@ $env.config = {
|
||||
pre_prompt: [{
|
||||
code: "
|
||||
let direnv = (direnv export json | from json)
|
||||
let direnv = if ($direnv | length) == 1 { $direnv } else { {} }
|
||||
let direnv = if not ($direnv | is-empty) { $direnv } else { {} }
|
||||
$direnv | load-env
|
||||
"
|
||||
}]
|
||||
|
Loading…
Reference in New Issue
Block a user