Explain that `_ZO_EXCLUDE_DIRS` doesn't remove existing database entries.

When trying to use `_ZO_EXCLUDE_DIRS`, I was confused why it wasn't working with `zi`. It turns out that it worked well, but some of the directories I wanted to exclude were already in the database.

I have added a line to the README to make this clearer.
This commit is contained in:
Samir Talwar 2025-03-05 22:38:17 +01:00 committed by GitHub
parent 0f07314d33
commit 782fc22f41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -437,6 +437,8 @@ Environment variables[^2] can be used for configuration. They must be set before
| Windows | `;` | `$HOME;$HOME/private/*` |
- By default, this is set to `"$HOME"`.
- This does not exclude directories that have already been added to the database.
You must remove them using `zoxide edit`.
- `_ZO_FZF_OPTS`
- Custom options to pass to [fzf] during interactive selection. See
[`man fzf`][fzf-man] for the list of options.