How to actually hack 2x faster (terminal edition)
Takes 30 seconds to learn. Saves 30 seconds every time.
Here are my 6 favorite time savers:
-
Start using undo (Yes, you can undo):
Ctrl-/ -
Stop spamming the up key to search previous commands
Start usingCtrl-rthen type keywords -
Stop using
clear,
Start usingCtrl-l -
Stop holding the left key for 10 seconds,
Start usingCtrl-a -
Stop holding the right key for 10 seconds,
Start usingCtrl-e -
Start using the built-in terminal "clipboard":
Ctrl-a+Ctrl-kto "cut" the entire line
Ctrl-yto paste from the "clipboard"
After pasting, you can useAlt-yto loop through clipboard history
"But I can't remember them!"
I got you covered.
Here is how I would memorize it in a minute using mnemonics:
Ctrl+/: "slash" the new changes = undoCtrl+l:C+l= "Cl"earCtrl+a: "a" is the start of the alphabetCtrl+e: "e"ndCtrl+r: "r"everse searchCtrl+k: "k"ut (cut)Ctrl+y: "why" does it mean paste?Alt+y: "alt"er what you have pasted
The GNU readline manual (man readline) has a lot more.
Fun thing to do when you don't have the Internet.
Practice for a week and I promise you will feel invincible.