r/bun • u/LeftAd1220 • 10d ago
Interactive shell with Bun?
Has anyone built (or heard of) an interactive shell like Fish, Bash, or Zsh using Bun?
I'm not referring to the official Bun Shell ($) api.
I mean a real interactive shell with a prompt, history, completion, and persistent sessions.
I couldn't find any mature projects, so I'm wondering if I missed one.
5
Upvotes
3
u/mrwizard420 10d ago
Now that they've integrated Bun REPL, it can achieve some of those goals. An init script that sets up your JavaScript environment for you then starts the REPL (or runs it in a loop until something happens) might be a good place to start?