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-r
then 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-k
to "cut" the entire line
Ctrl-y
to paste from the "clipboard"
After pasting, you can useAlt-y
to 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.