Skip to content

Commit

Permalink
Fix the mistaken ~/..jump home dir
Browse files Browse the repository at this point in the history
  • Loading branch information
gsamokovarov committed Jul 24, 2019
1 parent 08e6507 commit 17bfc04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Expand Up @@ -87,7 +87,7 @@ func findConfigDir(dir string) (string, error) {
return dir, err
}

configDir := filepath.Join(home, "."+defaultHomeDir)
configDir := filepath.Join(home, defaultHomeDir)
if _, err := os.Stat(configDir); os.IsNotExist(err) {
if xdgHome := os.Getenv("XDG_CONFIG_HOME"); xdgHome != "" {
configDir = filepath.Join(xdgHome, defaultXDGDir)
Expand Down

0 comments on commit 17bfc04

Please sign in to comment.