diff --git a/cmdConfig.go b/cmdConfig.go index 64a14ee..8ed3098 100644 --- a/cmdConfig.go +++ b/cmdConfig.go @@ -53,6 +53,10 @@ func readConfig(filepath ...string) (*Config, error) { var configFile string var env bool + // Load default config first, this way any values missing from the provided config file will remain the default value + d := []byte(defaultConfig) + toml.Unmarshal(d, result) + switch len(filepath) { case 0: configFile, env = os.LookupEnv("KBTUI_CFG")