3 ms·
Ctrl+R followed by key parts of it.
by pjmlp 2y ago
Ctrl+R followed by key parts of it.
- ckastner 2y agoYes, this. For example, `Ctrl+R makedo` would go back in history to the first command that matches this, to use the ` ./scripts/makedocs.sh` example from the article.
- k3vinw 2y agoAnd Ctrl+s goes forward in history, but if you don’t have flow control disabled you might think your terminal became frozen in time. Ctrl+q will resume the flow in that case. Also got to watch out for Ctrl+d on qwerty kb layouts where s and d keys live side by side.
- deleted 2y ago[deleted]
- jmholla 2y agoYup. Then if you want to run the commands that you ran after it last time, hit `Ctrl+O` instead of `Enter` and the next command you ran will be pre-filled on the prompt.