From 4e859b93d2b6011c53a837b56afae613ab869957 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Thu, 31 Oct 2024 20:01:26 -0500 Subject: [PATCH] Add a clarification to the latest TIL --- unix/undo-changes-made-to-current-terminal-prompt.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/unix/undo-changes-made-to-current-terminal-prompt.md b/unix/undo-changes-made-to-current-terminal-prompt.md index 92cb39c..f99daaa 100644 --- a/unix/undo-changes-made-to-current-terminal-prompt.md +++ b/unix/undo-changes-made-to-current-terminal-prompt.md @@ -6,8 +6,9 @@ some edits toward that side of the command or `ctrl-e` to jump to the end of the command for the same reason. I sometimes even use `ctrl-k` to delete everything after the cursor to the end of the line. -What I didn't realize until now is that any of those actions plus regular -typing and hitting the backspace are all _undoable_. +What I didn't realize until now is that any of those commands the modify the +current line of the termianl prompt plus regular typing and hitting the +backspace are all _undoable_. So, if I just wiped out half the line (with `ctrl-k`) and I immediately regret it, I can restore it with `ctrl-_`. The system keeps of history of the actions