Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I believe that using zsh means, for the vast majority of users, using just a small subset of functionality that gives a better UX when compared to Bash.

What about adding only these functionalities you may care about?

When I tried zsh, what I liked was the history search. Like you, everything else "wasn't as simple as I expected". So I fixed my bash to add and expand what I had enjoyed!

Check https://github.com/csdvrx/bash-timestamping-sqlite :

- stores everything into a sqlite database so separate bash in separate terminals can access each other history on the go (without waiting for the session to end and the history being committed),

- add extra details to the history like when the command started, stopped, which with return code, in which directory (more on what that enables below),

- for accessing the history, uses fzy for fuzzy finding, (the one thing I mostly enjoyed in zsh, not zsh but fzy!!)

- provides 2 separate history search contexts: either global (ctrl-t) or "this directory only" (ctrl-r), with extra goodies like excluding commands with a non-zero return error code thanks to the extra things saved

I included a few examples of the SQL queries you can run.



Looks awesome. Thank you for building it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: