Skip to content

Commit

Permalink
docs: add command_not_found hook for nixos (#1745)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienLemaire authored Jan 12, 2025
1 parent a59f444 commit 66d4a64
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions book/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,16 @@ $env.config = {
}
```

### `command_not_found` Hook in _NixOS_

NixOS comes with the command `command-not-found`. We only need to plug it in the nushell hook:

```nu
$env.config.hooks.command_not_found = {
|command_name|
print (command-not-found $command_name | str trim)
}
```


### `command_not_found` Hook in _Windows_
Expand Down

0 comments on commit 66d4a64

Please sign in to comment.