3 ms·
Can you navigate C-r history, or are you forced to see only the last command?
by jakzq 5y ago
Can you navigate C-r history, or are you forced to see only the last command?
- mbilker 5y agoYou can! If you do C-r again, then it will show the next command in your history for the given search.
- isenhaard 5y agoI've noted once within my personal bash cheat sheet this: Search the command history * Search as you type: Ctrl + r and type the search term; Repeat Ctrl + r to loop through results. * Search the last remembered search term: Ctrl + r twice. * End the search at current history entry: Ctrl + j * Cancel the search and restore original line: Ctrl + g Try of course at your own risk. But works for me.
- srik 5y agoPair <C-r> with `fzf` if you want good ux.