Hacker News new | ask | show | jobs
by gogoyubari 1359 days ago
Nice, there's also ble.sh -- a bash replacement of readline that has zsh/fish-like syntax colors and completion. It is actively developed and the maintainer has implemented 2 features I've requested in a matter of hours.

If you want to check it out: https://github.com/akinomyoga/ble.sh

(Still, I personally believe these features are overrated and don't actually bring in more usability or comfort to the command line experience. For instance, ctrl+r kills the need for suggestions and instead of selecting files scrolling through them with your fingers, you can select them using your eyes?)

1 comments

> there's also ble.sh

I tried. It was a source of inspiration for the looks, because it looks really nice!

However, due to some design decisions ble.sh is slow to the point of being unusable on some hardware I use, including a modern laptop running msys2 instead of WSL2

> For instance, ctrl+r kills the need for suggestions

Use both: seed your history search with the path and a few keywords, then sort by frequency of how often it was the correct or successful complete in the past (meaning it gave you a non error return code)

> slow to the point of being unusable

ble.sh has a vast array of configuration options. By disabling features I didn't like or need I was able to make it run pretty fast and responsive.

Interesting. Maybe I should have tried to configure it better?

In the end, doing a rewrite of the core features allowed me to fine tune the technical choices to work extremely well on Windows (where fork is slow) while adding SQL for both the command history and query format, so hopefully I didn't just reinvent the wheel :)

most of the problems with slowness with these things is that processes are very very heavy on windows compared to linux and take a while to launch.