DEV Community

Discussion on: What are your CLI go to commands and aliases?

Collapse
 
abhinav profile image
Abhinav Kumar

Instead of history | grep 'something', you can just use Ctrl+R to search your history. I use zsh + prezto which adds sub-string search.

Collapse
 
foresthoffman profile image
Forest Hoffman

+1. Also, when you've narrowed the search, you can continue hitting Ctrl+R to navigate backward in time, through all the commands that match.

Collapse
 
benrussert profile image
Ben Russert

I'm sold if you can tell me a way to get back to exactly where I was when I started after I find what I need.

Thread Thread
 
foresthoffman profile image
Forest Hoffman

IIRC, you can press tab and that will dump your cursor at the end of the line, once you've found the command you want.