Hacker News new | past | comments | ask | show | jobs | submit login

Since I've switched to zshell, I've found that I haven't used Ctrl-r much at all. The intelligent history feature does it for me. For example:

If earlier I had a long command like `mvn clean test && mvn deploy -P release`, I can just type `mvn v` and press up on the arrows. zsh will present only history entries that start with what I've typed. Insanely useful!




The same thing can be done in bash:

## arrow up

"\e[A":history-search-backward

## arrow down

"\e[B":history-search-forward

(in .inputrc)


I prefer mapping those to page up and page down.




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

Search: