Skip to content
This repository was archived by the owner on Sep 18, 2025. It is now read-only.

Commit ce8bf37

Browse files
look for $HOME/.config for config in addition to $XDG_CONFIG_HOME/
1 parent f33dff8 commit ce8bf37

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/config/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ func configureViper() {
177177
viper.SetConfigType("json")
178178
viper.AddConfigPath("$HOME")
179179
viper.AddConfigPath(fmt.Sprintf("$XDG_CONFIG_HOME/%s", appName))
180+
viper.AddConfigPath(fmt.Sprintf("$HOME/.config/%s", appName))
180181
viper.SetEnvPrefix(strings.ToUpper(appName))
181182
viper.AutomaticEnv()
182183
}

0 commit comments

Comments
 (0)