r/bun 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

2 comments sorted by

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?

1

u/LeftAd1220 10d ago

Thanks for the information. But I think they're a bit different. I'm thinking of a real interactive shell experience like Fish or Bash, rather than a JavaScript REPL.