Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Feb 20, 2024
1 parent dd96212 commit c57d9dc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkg/bridges/bash.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,14 @@ func bashCompletionLocations() []string {
locations = append(locations, fmt.Sprintf("%v/completions", userDir))
}
} else {
// TODO $XDG_DATA_HOME:-$HOME
if dataHome, ok := os.LookupEnv("XDG_DATA_HOME"); ok {
locations = append(locations, fmt.Sprintf("%v/.local/share/bash/completion/completions", dataHome))
} else {
// TODO XDG_DATA_HOME
if home, err := os.UserHomeDir(); err == nil {
locations = append(locations, fmt.Sprintf("%v/.local/share/bash/completion/completions", home))
}
}
}

// # 2) From the location of bash_completion: Completions relative to the main
Expand Down

0 comments on commit c57d9dc

Please sign in to comment.