Skip to content

Commit 6e01d4a

Browse files
authored
Add default to docs for $_ZL_CD
I don't know if the default of `builtin cd` is a good one, as opposed to simple `cd`. It took me quite a bit of debugging before I figured out why, on my `fish` shell, changing directories with `z.lua` messed up the `cdh` (cd history) command. I think the best thing would be to change the default. However, if you have a good reason to stick with it, I thought that documenting this potentially unexpected behavior might help.
1 parent c3c15a3 commit 6e01d4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ z -b foo # cd to the parent directory starting with foo
153153
- set `$_ZL_EXCLUDE_DIRS` to a comma separated list of dirs to exclude.
154154
- set `$_ZL_ADD_ONCE` to '1' to update database only if `$PWD` changed.
155155
- set `$_ZL_MAXAGE` to define a aging threshold (default is 5000).
156-
- set `$_ZL_CD` to specify your own cd command.
156+
- set `$_ZL_CD` to specify your own cd command (default is `builtin cd` in Unix shells).
157157
- set `$_ZL_ECHO` to 1 to display new directory name after cd.
158158
- set `$_ZL_MATCH_MODE` to 1 to enable enhanced matching.
159159
- set `$_ZL_NO_CHECK` to 1 to disable path validation, use `z --purge` to clean

0 commit comments

Comments
 (0)