Shortcuts are a source of constant amusement as far as I’m concerned, and
nothing on Earth makes me more ecstatically happy than accidentally
discovering a new one. Today’s mis-fingering was ^t in bash, which
roughly translated means transpose the character under the cursor and
the previous character.
Two transposed characters is by far my commonest typo (vim: xp), so
I’m not going to lie, I’m pretty happy. To celebrate I’m going to try and
use bash this week by only touching letter keys, Ctrl, Alt and Shift.
Here’s how:
Basic Movement:
^fcursor right^bcursor left^menter^itab^hbackspace^astart of line^eend of line^uyank back^kyank forward^wyank word back^ypaste
Awesome sauce:
^pprevious in history^nnext in history^rreverse incremental search^gclear search^lclear screen
In OS X’s Terminal.app, to enable Alt key combinations,
select ‘Use option as meta key’ in its keyboard preferences.