diff --git a/main.go b/main.go index 11c5fa9..2203b0a 100644 --- a/main.go +++ b/main.go @@ -40,6 +40,7 @@ func init() { viper.AddConfigPath("$HOME/.config") viper.SetConfigName("itd") viper.SetConfigType("toml") + viper.WatchConfig() viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_")) viper.SetEnvPrefix("itd") if err := viper.ReadInConfig(); err != nil {