diff --git a/internal/cli/config.go b/internal/cli/config.go index 50bd625..00282e0 100644 --- a/internal/cli/config.go +++ b/internal/cli/config.go @@ -88,6 +88,5 @@ func configSearchDirs() []string { } else if home, err := os.UserHomeDir(); err == nil { dirs = append(dirs, filepath.Join(home, ".config", "tg")) } - dirs = append(dirs, ".") return dirs } diff --git a/internal/cli/config_test.go b/internal/cli/config_test.go index 7bae8c2..d573782 100644 --- a/internal/cli/config_test.go +++ b/internal/cli/config_test.go @@ -18,12 +18,12 @@ func TestConfigSearchDirs(t *testing.T) { { name: "xdg config home set", xdg: xdg, - want: []string{filepath.Join(xdg, "tg"), "."}, + want: []string{filepath.Join(xdg, "tg")}, }, { name: "fall back to home", xdg: "", - want: []string{filepath.Join(home, ".config", "tg"), "."}, + want: []string{filepath.Join(home, ".config", "tg")}, }, }