Skip to content

Commit

Permalink
Update hooks.md (#1749)
Browse files Browse the repository at this point in the history
```
Error: nu::shell::type_mismatch

  × Type mismatch during operation.
    ╭─[/Users/foo/Library/Application Support/nushell/config.nu:27:33]
 26 │                         ('/Users/foo/dir' not-in $after
 27 │                             and '/Users/foo/dir' in $before
    ·                                 ─────────────────────┬──────────────────── ─┬ ───┬───
    ·                                                      │                      │    ╰── nothing
    ·                                                      │                      ╰── type mismatch for operator
    ·                                                      ╰── string
 28 │                             and 'activate' in (overlay list))
    ╰────


~ 
❯ 𝒾: 
process finished with exit code = -1
```
  • Loading branch information
schlich authored Jan 16, 2025
1 parent fde4cba commit b6e9dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ $env.config = ($env.config | upsert hooks.env_change.PWD {
{
condition: {|before, after|
('/path/to/target/dir' not-in $after
and '/path/to/target/dir' in $before
and '/path/to/target/dir' in ($before | default "")
and 'test-env' in (overlay list))
}
code: "overlay hide test-env --keep-env [ PWD ]"
Expand Down

0 comments on commit b6e9dd3

Please sign in to comment.