re: 5 Handy Bash Tricks in 2 Minutes VIEW POST

FULL DISCUSSION
 

ctrl+r to search back through your command history to rerun a command is something that I find surprises people

vim folks will also love setting vi as the keyboard shortcuts to edit lines in Bash with set -o v within their profile. you can then up arrow (or ctrl+r) to find a previous command, hit Esc to exit insert mode to activate vi shortcuts then to edit the line. For example command 0 (zero) takes you to the beginning of the line, w jumps over words, r will let you overwrite, a to start appending, d3w will delete three words. Using vi shortcuts can save a serious amount of typing.

Folks on windows who like bash and who use visual studio code might like my post on setting Git Bash to be the built in terminal within VS Code.

code of conduct - report abuse