Built-in Terminal

Use the Built-in Terminal

// Name: Run Commands in the Terminal
import "@johnlindquist/kit"
await term({
//defaults to home dir
cwd: `~/.kenv`,
command: `ls`,
// The footer is optional. All terms continue with the same shortcuts
footer: `ctrl+c or cmd+enter to continue`,
})

Open run-commands-in-the-terminal in Script Kit

The shell defaults to zsh. You can change your shell by setting the KIT_SHELL environment variable in the ~/kenv/.env, but most of the testing has been done with zsh.

Discuss Post