Add note about the default hook behaviour

This commit is contained in:
Peter Jeschke 2024-09-20 09:59:50 +02:00 committed by GitHub
parent eb9bd54e59
commit 993500804d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 5 deletions

View File

@ -408,11 +408,11 @@ When calling `zoxide init`, the following flags are available:
- `--cmd cd` would replace the `cd` command.
- `--hook <HOOK>`
- Changes how often zoxide increments a directory's score:
| Hook | Description |
| -------- | --------------------------------- |
| `none` | Never |
| `prompt` | At every shell prompt |
| `pwd` | Whenever the directory is changed |
| Hook | Description |
| -------- | ------------------------------------------- |
| `none` | Never |
| `prompt` | At every shell prompt |
| `pwd` | (Default) Whenever the directory is changed |
- `--no-cmd`
- Prevents zoxide from defining the `z` and `zi` commands.
- These functions will still be available in your shell as `__zoxide_z` and