3 ms·
Not sure if this counts as a "programming trick", but for maneuvering around the shell: learning readline. https://readline.kablamo.org/emacs.html https://read
by msluyter 4y ago
Not sure if this counts as a "programming trick", but for maneuvering around the shell: learning readline.
https://readline.kablamo.org/emacs.html https://readline.kablamo.org/emacs.html
^This one cool trick will increase your productivity by 1000%!
I've had sr. engineers see me using ctrl-r and go "woah, how did you do that?"
- jacknews 4y agoAnd for the rest of us :) https://readline.kablamo.org/vi.html https://readline.kablamo.org/vi.html
- rjh29 4y agoYeah I heard of people grepping their history file. Ctrl+R is so much faster.
- asicsp 4y agoMost of the time I know the starting characters of the command I want, so I use up/down arrow instead of Ctrl+r. You'll need this in `.inputrc` # use up and down arrow to match search history based on typed starting text "\e[A": history-search-backward "\e[B": history-search-forward