Skip to content

Commit

Permalink
Add note about the default hook behaviour (#890)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjeschke authored Sep 20, 2024
1 parent 6d3a711 commit 075fd2c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 075fd2c

Please sign in to comment.