Ask HN: Your favorite practical, underutilized programming tip?

https://news.ycombinator.com/item?id=7669444
by dpmehta02 • 12 years ago
15 14 12 years ago

Example:

Tip: Bash reverse search, because manually scrolling through your history is a nuisance.

How (OS X): CTRL+R, start typing a word from your command history. Press CTRL+R to cycle through matches, ENTER to execute, TAB to edit. If you want to add forward search to bash, you can re-map your key bindings in your bash profile with the following (maps to CTRL+T): bind "\C-t":forward-search-history

Related Stories

Loading related stories...

Source preview

news.ycombinator.com