1
0
forked from nbsp/welcome

Compare commits

...

2 Commits

Author SHA1 Message Date
aoife cassidy
7227bdb531
oops 2025-04-03 08:50:38 +03:00
aoife cassidy
a1843ba12b
within 2025-04-03 08:18:28 +03:00
2 changed files with 5 additions and 3 deletions

View File

@ -64,7 +64,7 @@ func (view *Editor) Event(state *ui.State, event vaxis.Event) (processed bool) {
vt.TERM = os.Getenv("TERM")
vt.Attach(state.PostEvent())
vt.Focus()
err := vt.Start(exec.Command("bash", "-l"))
err := vt.Start(exec.Command("bash"))
if err != nil {
panic(err)
}

View File

@ -24,7 +24,9 @@ func (view *Shell) Draw(state *ui.State) (row int) {
vaxis.Segment{Text: "TERMINAL", Style: vaxis.Style{Foreground: vaxis.IndexColor(3)}},
vaxis.Segment{Text: `. Good news...you've been using the TERMINAL this whole time!
The tool we use to navigate between programs *within* the terminal, however, is called a `},
The tool we use to navigate between programs `},
vaxis.Segment{Text: "within", Style: vaxis.Style{Attribute: vaxis.AttrItalic}},
vaxis.Segment{Text: " the terminal, however, is called a "},
vaxis.Segment{Text: "shell", Style: vaxis.Style{Foreground: vaxis.IndexColor(3)}},
vaxis.Segment{Text: `. It's an interface that accepts commands, like "open a text editor" or "show me my flower", in a special language. the most popular shell is called `},
vaxis.Segment{Text: "bash", Style: vaxis.Style{Foreground: vaxis.IndexColor(3)}},
@ -63,7 +65,7 @@ func (view *Shell) Event(state *ui.State, event vaxis.Event) (processed bool) {
vt.TERM = os.Getenv("TERM")
vt.Attach(state.PostEvent())
vt.Focus()
err := vt.Start(exec.Command("bash", "-l"))
err := vt.Start(exec.Command("bash"))
if err != nil {
panic(err)
}