1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add Undo Some Command Line Editing as a unix til

This commit is contained in:
jbranchaud
2017-04-19 13:29:59 -05:00
parent 4f2684e509
commit c6fca515b6
2 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
# Undo Some Command Line Editing
When using some of the fancy command line editing shortcuts, such as
`ctrl-u`, you may end up erroneously changing or deleting part of the
current command. Retyping it may be a pain or impossible if you've forget
exactly what was changed. Fortunately, bash's command line editing has undo
built in. Just hit `ctrl-_` a couple times to get back to where you want to
be.
h/t Chris Erin
[source](https://www.gnu.org/software/bash/manual/bashref.html#Command-Line-Editing)