Skip to content

Commit 0977ec5

Browse files
authored
Merge pull request #324 from Nagato-Yuzuru/fix/osenv
fix PATH env key
2 parents 6960f41 + 272413e commit 0977ec5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/bridges/bash.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func bashCompletionLocations() []string {
9999
// [[ $dir == ?*/@(bin|sbin) ]] &&
100100
// dirs+=("${dir%/*}/share/bash-completion/completions")
101101
// done
102-
for _, pathDir := range strings.Split(os.Getenv("$PATH"), string(os.PathListSeparator)) {
102+
for _, pathDir := range strings.Split(os.Getenv("PATH"), string(os.PathListSeparator)) {
103103
locations = append(locations, fmt.Sprintf("%v/share/bash-completion/completions", pathDir))
104104
}
105105

0 commit comments

Comments
 (0)