Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ctrl+R followed by key parts of it.


Yes, 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.


And 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.


Yup. 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: