From 0057139f01982fb01e155604a6078b17d9eb7f14 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 25 Jul 2026 21:35:18 -0400 Subject: [PATCH] config: don't search pwd --- internal/cli/config.go | 1 - internal/cli/config_test.go | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) 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")}, }, } -- 2.51.2