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 5a56b57 commit 150623eCopy full SHA for 150623e
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