commit ab6cbd2d48f2aacb84b4dcbae9fd702a24e093e8
parent 16be967fb6f5e15cfd99344974667c106e51b53d
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Sat, 18 Jul 2020 01:56:54 -0700
Add `k` alias to run previous command
for when you press escape after k in a rush to re-run the last command
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/aliases/.aliases b/aliases/.aliases
@@ -168,3 +168,6 @@ lk() {
# pipe du into sort -h
ds() { du -h $@ | sort -h ;}
+
+# redo last command (I frequently type k+enter before escape in vi mode)
+k() { fc -s ;}