Skip to content

Commit 17e850e

Browse files
committed
fix: Incorrect location when XDG_DATA_HOME is set
1 parent dee7ffa commit 17e850e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/bridges/bash.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func bashCompletionLocations() []string {
6767
}
6868
} else {
6969
if dataHome, ok := os.LookupEnv("XDG_DATA_HOME"); ok {
70-
locations = append(locations, fmt.Sprintf("%v/.local/share/bash-completion/completions", dataHome))
70+
locations = append(locations, fmt.Sprintf("%v/bash-completion/completions", dataHome))
7171
} else if home, err := os.UserHomeDir(); err == nil {
7272
locations = append(locations, fmt.Sprintf("%v/.local/share/bash-completion/completions", home))
7373
}

0 commit comments

Comments
 (0)