diff --git a/completion/all.go b/completion/all.go index ca6e2cf..be5b56f 100644 --- a/completion/all.go +++ b/completion/all.go @@ -59,7 +59,7 @@ func ShellOptions(choice *string) *serpent.Enum { func DetectUserShell(programName string) (Shell, error) { // Attempt to get the SHELL environment variable first if shell := os.Getenv("SHELL"); shell != "" { - return ShellByName(filepath.Base(shell), "") + return ShellByName(filepath.Base(shell), programName) } // Fallback: Look up the current user and parse /etc/passwd