From 48059505cb328fba5b80d38eed2be7c63c83fba5 Mon Sep 17 00:00:00 2001 From: Ethan Dickson Date: Fri, 24 Oct 2025 02:47:20 +0000 Subject: [PATCH] fix: use program name when detecting shell via $SHELL --- completion/all.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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