fix(config): add /etc/cheat config path

Add `/etc/cheat/conf.yml` to default config paths. See #568 for context.
This commit is contained in:
Chris Lane
2020-07-09 18:28:10 -04:00
parent 278a5d9154
commit c4dcfd5da0
3 changed files with 4 additions and 2 deletions

View File

@@ -36,10 +36,10 @@ func Paths(
paths = append(paths, path.Join(xdgpath, "/cheat/conf.yml"))
}
// if `XDG_CONFIG_HOME` is not set, search the user's home directory
paths = append(paths, []string{
path.Join(home, ".config/cheat/conf.yml"),
path.Join(home, ".cheat/conf.yml"),
"/etc/cheat/conf.yml",
}...)
return paths, nil