feat: add shell login option (#75)

Closes #72
This commit is contained in:
Paolo Ricciuti
2026-07-30 22:45:23 +07:00
committed by GitHub
parent 37182f7212
commit 2573ad73b4
10 changed files with 103 additions and 12 deletions
+4 -1
View File
@@ -148,7 +148,7 @@ var setupCmd = &cobra.Command{
var shellName string
if len(args) > 0 {
shellName = args[0]
shellName = filepath.Base(args[0])
} else {
shellPath := os.Getenv("SHELL")
shellName = filepath.Base(shellPath)
@@ -208,6 +208,9 @@ version = 1
# override shell: "bash", "zsh", "fish", keep empty for auto detection
shell = ""
# run the selected shell as a login shell
shell-login = false
# startup mode: "last", "spec", "history"
# "last" = remember last mode used
mode = "last"