aboutsummaryrefslogtreecommitdiff
path: root/cmd/root.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-09-30 16:13:40 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-09-30 16:13:40 +0530
commit6aaea4225d531a7b3ff5e21d12d35a7361aaf43b (patch)
tree43aa01caff1741f52a95988c7eed82feee79df46 /cmd/root.go
parente1bd26b9ad73cd0758ba77373c1cd07f72f47a65 (diff)
looking for config file systemwidw
Diffstat (limited to 'cmd/root.go')
-rw-r--r--cmd/root.go4
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