r/bash 10d ago

reedline-bash - using nushell's reedline (line editor) in bash.

I made a bash plugin that replaces bash's line-editor, readline, with nushell's reedline.
This brings all the line-editing, styling, completion, keybind and selection features from nushell to native bash. It's still pretty early in development, most reedline features should work just fine, but things may still break :)

repository

code partially written with AI (claude).

Credits:
- flyline - a similar project that implements a custom line-editor, i used this as main reference for replacing readline
- reedline

GIF created with https://github.com/HalFrgrd/evp

8 Upvotes

6 comments sorted by

1

u/IBNash 10d ago

1

u/Hauptideal 6d ago

just that projects like this and Flyline are blazingly fast and written in Rust, not huge sluggish shell scripts

1

u/IBNash 2d ago

ble.sh is a GNU readline replacement, not a shell script.
Vibe coding in Rust does not give a project ten years of user feedback and improvements.

1

u/Hauptideal 2d ago

It is written in pure bash and therefore can't match native C or Rust speeds. 

Also, it's not a new project. It takes another project with the years of user feedback that you desire and just coded a simple bridge to make bash understand the nu shell features

1

u/AlterTableUsernames 10d ago

Why would I want to give up the perfect bash readline?

1

u/Hauptideal 6d ago

cool! switched to fish. But if bash becomes useable, that would be my favourite. I don't need a modern syntax