fix(cd): harden zoxide directory suggestions

This commit is contained in:
2026-08-14 13:11:21 +03:00
parent 0b2221d5e9
commit 11fad73ef5
12 changed files with 436 additions and 136 deletions
+4
View File
@@ -97,6 +97,10 @@ filter-active-branch = true
# merge remote and local branches with same name
deduplicate-branches = true
[zoxide]
# include zoxide directories in cd suggestions
extend-cd = false
[updater]
# check for updates on startup
check-on-startup = true
+3
View File
@@ -37,6 +37,9 @@ func TestConfigCommands(t *testing.T) {
if !strings.Contains(string(content), "shell-login = false") {
t.Error("expected initialized config to include shell-login = false")
}
if !strings.Contains(string(content), "extend-cd = false") {
t.Error("expected initialized config to include extend-cd = false")
}
buf := new(bytes.Buffer)
ConfigShowCmd.SetOut(buf)
+4
View File
@@ -276,6 +276,10 @@ filter-active-branch = true
# merge remote and local branches with same name
deduplicate-branches = true
[zoxide]
# include zoxide directories in cd suggestions
extend-cd = false
[updater]
# check for updates on startup
check-on-startup = true