mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-26 13:49:21 +08:00
remove few config paths
This commit is contained in:
parent
f3f317f2f3
commit
85b0fc14fc
3
start.go
3
start.go
@ -44,8 +44,6 @@ func readConfig(args Args) {
|
||||
viper.SetConfigName("config")
|
||||
viper.SetConfigType("yaml")
|
||||
viper.AddConfigPath(expandTilde(configPath))
|
||||
viper.AddConfigPath("/etc/gomu")
|
||||
viper.AddConfigPath("$HOME/.gomu")
|
||||
viper.AddConfigPath("$HOME/.config/gomu")
|
||||
|
||||
colors := map[string]string{
|
||||
@ -103,7 +101,6 @@ func readConfig(args Args) {
|
||||
if validateHexColor(cfgColor) {
|
||||
continue
|
||||
}
|
||||
// debugLog(fmt.Sprintf("%s is replaced by %s", cfgColor, v))
|
||||
// use default value if invalid hex color was given
|
||||
viper.Set(k, v)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user