We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f3d052 commit e5798f5Copy full SHA for e5798f5
completion/all.go
@@ -59,7 +59,7 @@ func ShellOptions(choice *string) *serpent.Enum {
59
func DetectUserShell(programName string) (Shell, error) {
60
// Attempt to get the SHELL environment variable first
61
if shell := os.Getenv("SHELL"); shell != "" {
62
- return ShellByName(filepath.Base(shell), "")
+ return ShellByName(filepath.Base(shell), programName)
63
}
64
65
// Fallback: Look up the current user and parse /etc/passwd
0 commit comments