Commit 61d0b68
authored
Update hooks.md
Fixing example by adding `[` and `]` to provide list to hook
```
Error: nu::shell::invalid_config
× Encountered 1 error(s) when updating config
Error: nu::shell::type_mismatch
× Type mismatch at $env.config.hooks.env_change.PWD
╭─[]
4 │ env_change: {
5 │ ╭─▶ PWD: {
6 │ │ code: 'print $"changing directory from ($before) to ($after)"'
7 │ ├─▶ }
· ╰──── expected list<any>, but got record<code: string>
8 │ }
╰────
```1 parent b71d260 commit 61d0b68
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| |||
0 commit comments