Add note about the default hook behaviour (#890)
This commit is contained in:
parent
6d3a711115
commit
075fd2c695
10
README.md
10
README.md
|
@ -408,11 +408,11 @@ When calling `zoxide init`, the following flags are available:
|
||||||
- `--cmd cd` would replace the `cd` command.
|
- `--cmd cd` would replace the `cd` command.
|
||||||
- `--hook <HOOK>`
|
- `--hook <HOOK>`
|
||||||
- Changes how often zoxide increments a directory's score:
|
- Changes how often zoxide increments a directory's score:
|
||||||
| Hook | Description |
|
| Hook | Description |
|
||||||
| -------- | --------------------------------- |
|
| --------------- | --------------------------------- |
|
||||||
| `none` | Never |
|
| `none` | Never |
|
||||||
| `prompt` | At every shell prompt |
|
| `prompt` | At every shell prompt |
|
||||||
| `pwd` | Whenever the directory is changed |
|
| `pwd` (default) | Whenever the directory is changed |
|
||||||
- `--no-cmd`
|
- `--no-cmd`
|
||||||
- Prevents zoxide from defining the `z` and `zi` commands.
|
- Prevents zoxide from defining the `z` and `zi` commands.
|
||||||
- These functions will still be available in your shell as `__zoxide_z` and
|
- These functions will still be available in your shell as `__zoxide_z` and
|
||||||
|
|
Loading…
Reference in New Issue