Compare commits

..

No commits in common. "trunk" and "copyedit" have entirely different histories.

2 changed files with 3 additions and 5 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"))
err := vt.Start(exec.Command("bash", "-l"))
if err != nil {
panic(err)
}

View File

@ -24,9 +24,7 @@ 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 `},
vaxis.Segment{Text: "within", Style: vaxis.Style{Attribute: vaxis.AttrItalic}},
vaxis.Segment{Text: " the terminal, however, is called a "},
The tool we use to navigate between programs *within* 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)}},
@ -65,7 +63,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"))
err := vt.Start(exec.Command("bash", "-l"))
if err != nil {
panic(err)
}