What have you found for these years?

2014-12-29

fish like up/down history search for readline (or bash)

I am not sure if everyone already knows this,
but I just hardly found this on the Internet.
Seriously, this should really be the default!

finally!! fish like up/down arrow for readline!

Here's the .inputrc you would use:

"\e[A": history-substring-search-backward
"\e[B": history-substring-search-forward

I don't care about bash because I am using fish,
but for things like rib or other interactive shells
are all using readline. This should give them
the power of full-text search for history.

Fish still did a better job to highlight the matched
text, but it's probably good enough for now.

0 retries:

Post a Comment

Note: Only a member of this blog may post a comment.



All texts are licensed under CC Attribution 3.0