by yamaneko · 9y ago · 0 comments
"\e[A": history-search-backward
"\e[B": history-search-forward
in your ~/.inputrc. So, if you are typing a command which begins with "git", it will only search in history for commands that start with git (instead of returning all commands that may include the string 'git' like Ctrl+r). Having trouble trying to remember that option you passed to `git log`? Just type in `git log` and press the up arrow to find your last usages.I think it is also helpful to learn Emacs or vim keybindings. I use Emacs keybindings in bash a lot (enabled by default). I have summarized the ones that I used more often in a previous comment [2].
[1]: https://www.ukuug.org/events/linux2003/papers/bash_tips/
No comments yet.