Prioritize config in home directory over /etc

This commit is contained in:
Elara 2021-08-21 10:26:12 -07:00
parent 3cfcdb7a01
commit 0d70dd9b11

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()