Prioritize config in home directory over /etc

This commit is contained in:
Elara 2021-08-21 10:26:12 -07:00
parent b68e81cf8d
commit 43ea68e62f

View File

@ -36,8 +36,8 @@ func init() {
log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr})
// Set config settings
viper.AddConfigPath("/etc")
viper.AddConfigPath("$HOME/.config")
viper.AddConfigPath("/etc")
viper.SetConfigName("itd")
viper.SetConfigType("toml")
viper.WatchConfig()