From 782fc22f4196d756188460261021885c006a3a7b Mon Sep 17 00:00:00 2001 From: Samir Talwar Date: Wed, 5 Mar 2025 22:38:17 +0100 Subject: [PATCH] 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. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index f0893a2..56b178a 100644 --- a/README.md +++ b/README.md @@ -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.