From fe62ad7c64703672e066b0e4a5a36de250717439 Mon Sep 17 00:00:00 2001 From: Fabian Siegel Date: Sat, 7 Aug 2021 22:04:25 +0200 Subject: [PATCH] config: add prefix to environment variables to prevent possible collision with $USERNAME (#11) --- cmd/root.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/root.go b/cmd/root.go index dbfc2b6..bbaf408 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -137,6 +137,7 @@ func initConfig() { viper.SetConfigFile(cfgFile) + viper.SetEnvPrefix("bb") viper.AutomaticEnv() err := viper.ReadInConfig()