From 6aaea4225d531a7b3ff5e21d12d35a7361aaf43b Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Fri, 30 Sep 2022 16:13:40 +0530 Subject: looking for config file systemwidw --- cmd/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/root.go') 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 -- cgit v1.2.3