3 ms·
Better yet, put this on ~/.inputrc "\e[A": history-search-backward "\e[B": history-search-forward to search backwards and forwards with the up and down
by JetSpiegel 12y ago
Better yet, put this on ~/.inputrc
"\e[A": history-search-backward
"\e[B": history-search-forward
to search backwards and forwards with the up and down arrow keys.
- gemlog 12y agoAnother way to take advantage of ctrl+r is to add a comment at the end of the line when you have very similar commands. e.g. ssh fred@127.0.0.1 #servername ffmpeg -some -long -incantation #vid2mp3 It's better than an alias or function in your rc file as you can easily edit to change some args