Skip to content

Commit

Permalink
Merge pull request #195 from KaranAhlawat/fix-bash-locations
Browse files Browse the repository at this point in the history
fix: Incorrect location when XDG_DATA_HOME is set
  • Loading branch information
rsteube committed Apr 11, 2024
2 parents dee7ffa + 17e850e commit 933c54d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/bridges/bash.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func bashCompletionLocations() []string {
}
} else {
if dataHome, ok := os.LookupEnv("XDG_DATA_HOME"); ok {
locations = append(locations, fmt.Sprintf("%v/.local/share/bash-completion/completions", dataHome))
locations = append(locations, fmt.Sprintf("%v/bash-completion/completions", dataHome))
} else if home, err := os.UserHomeDir(); err == nil {
locations = append(locations, fmt.Sprintf("%v/.local/share/bash-completion/completions", home))
}
Expand Down

0 comments on commit 933c54d

Please sign in to comment.