Skip to content

Commit

Permalink
Add ability to override shell via environment
Browse files Browse the repository at this point in the history
Not everywhere we will have zsh
  • Loading branch information
kuzaxak committed Feb 3, 2023
1 parent 342e35a commit a1a0517
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ import (
)

func main() {
// TODO: Replace to asci art
logrus.Info("Welcome to use HDO.")
var err error
shell := os.Getenv("QUDOSH_SHELL")
if shell == "" {
shell = "zsh"
}

// TODO read from env with default
shell := "zsh"
ctx, cancel := context.WithCancel(context.Background())

options := localcommand.Options{CloseSignal: 1}
Expand Down

0 comments on commit a1a0517

Please sign in to comment.