mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
direnv: fix nushell syntax
With nushell `0.85.0` this is no longer valid syntax. This change fixes the syntax error with `0.85.0` while still remaining valid for `0.84.0` and earlier.
This commit is contained in:
parent
7413408b04
commit
2d27bdcd64
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ in {
|
||||||
$env.config = ($env.config | update hooks.pre_prompt ($env.config.hooks.pre_prompt | append {
|
$env.config = ($env.config | update hooks.pre_prompt ($env.config.hooks.pre_prompt | append {
|
||||||
code: "
|
code: "
|
||||||
let direnv = (${pkgs.direnv}/bin/direnv export json | from json)
|
let direnv = (${pkgs.direnv}/bin/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
|
$direnv | load-env
|
||||||
"
|
"
|
||||||
}))
|
}))
|
||||||
|
|
Loading…
Reference in a new issue