Explorar el Código

Merge pull request #34 from shreyassanthu77/main

Kujtim Hoxha hace 1 año
padre
commit
5d7a9a98b3
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      internal/config/config.go

+ 1 - 0
internal/config/config.go

@@ -177,6 +177,7 @@ func configureViper() {
 	viper.SetConfigType("json")
 	viper.AddConfigPath("$HOME")
 	viper.AddConfigPath(fmt.Sprintf("$XDG_CONFIG_HOME/%s", appName))
+	viper.AddConfigPath(fmt.Sprintf("$HOME/.config/%s", appName))
 	viper.SetEnvPrefix(strings.ToUpper(appName))
 	viper.AutomaticEnv()
 }