diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-09-30 16:13:40 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-09-30 16:13:40 +0530 |
commit | 6aaea4225d531a7b3ff5e21d12d35a7361aaf43b (patch) | |
tree | 43aa01caff1741f52a95988c7eed82feee79df46 /cmd/root.go | |
parent | e1bd26b9ad73cd0758ba77373c1cd07f72f47a65 (diff) |
looking for config file systemwidw
Diffstat (limited to 'cmd/root.go')
-rw-r--r-- | cmd/root.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/root.go b/cmd/root.go index 7b379a3..413e6f2 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -54,8 +54,8 @@ func initConfig() { viper.SetConfigName("macli") //viper.SetConfigType("yaml") viper.AddConfigPath(".") - // viper.AddConfigPath("$HOME/.config/macli") - // viper.AddConfigPath("/etc/macli") + viper.AddConfigPath("$HOME/.config") + viper.AddConfigPath("/etc") // dont show error if file not found // macli doesnt need a config file to work properly |