Show HN: Tip – use ctrl and w to rapid delete in terminal / shell
hours of life saved :)
5 comments
This handling comes from readline, rather than your terminal/shell.
Readline has many shortcuts available here's a random assortment:
http://teohm.com/blog/2012/01/04/shortcuts-to-move-faster-in...
Readline has many shortcuts available here's a random assortment:
http://teohm.com/blog/2012/01/04/shortcuts-to-move-faster-in...
^W, ^U, ^C, ^S, ^Q, ^Z, etc are handled by the terminal driver. See stty -a
Useful tip. Made me realise ctrl-s works to go to start of line and ctrl-e to end of line. This is probably common knowledge for any Linux user but for me as a Mac user it's a revelation.
You mean ctrl-a for beginning-of-line?
Yeah, it's ctrl-A for start of line.
Here's a good cheatsheet: http://www.bigsmoke.us/readline/shortcuts
Here's a good cheatsheet: http://www.bigsmoke.us/readline/shortcuts
Thank you! Didn't know this till today.