fix(cd): harden zoxide directory suggestions
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user