Skip to content

Commit

Permalink
Merge pull request #9 from xbt573/develop
Browse files Browse the repository at this point in the history
Fix getting config from ~/.config
  • Loading branch information
xbt573 authored Dec 5, 2022
2 parents de1ec46 + 128c0d3 commit f46bc84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func loadConfig() (map[string]string, error) {
goto configChosed
}

f, err = os.Open("~/.config/barkfetch")
f, err = os.Open(os.ExpandEnv("$HOME/.config/barkfetch/config"))
if err == nil {
goto configChosed
}
Expand Down

0 comments on commit f46bc84

Please sign in to comment.