Skip to content

Commit 2ba22fd

Browse files
committed
urfavecli: added SHELL env to force descriptions
1 parent 0a334ff commit 2ba22fd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pkg/actions/bridge/urfavecli.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ func actionUrfavecliV3(command ...string) carapace.Action {
1717
args := append(command[1:], c.Args...)
1818
args = append(args, c.Value)
1919
args = append(args, "--generate-shell-completion")
20+
c.Setenv("SHELL", "zsh")
2021
return carapace.ActionExecCommand(command[0], args...)(func(output []byte) carapace.Action {
2122
lines := strings.Split(string(output), "\n")
2223
if len(lines) <= 1 {
@@ -30,7 +31,7 @@ func actionUrfavecliV3(command ...string) carapace.Action {
3031
}
3132
}
3233
return carapace.ActionValuesDescribed(vals...).NoSpace([]rune("/=@:.,")...)
33-
})
34+
}).Invoke(c).ToA()
3435
})
3536
})
3637
}

0 commit comments

Comments
 (0)