We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a59f444 commit 66d4a64Copy full SHA for 66d4a64
book/hooks.md
@@ -297,6 +297,16 @@ $env.config = {
297
}
298
```
299
300
+### `command_not_found` Hook in _NixOS_
301
+
302
+NixOS comes with the command `command-not-found`. We only need to plug it in the nushell hook:
303
304
+```nu
305
+$env.config.hooks.command_not_found = {
306
+ |command_name|
307
+ print (command-not-found $command_name | str trim)
308
+}
309
+```
310
311
312
### `command_not_found` Hook in _Windows_
0 commit comments