3 ms·
Show HN: Tip – use ctrl and w to rapid delete in terminal / shell
hours of life saved :)
- wsc981 12y agoUseful 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.
- choicenotchance 12y agoThat's just common knowledge. I mean, anyone who has worked for about a year on linux would know.
- nstart 12y agoThank you! Didn't know this till today.
- stevekemp 12y agoThis 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-bash-command-line/ http://teohm.com/blog/2012/01/04/shortcuts-to-move-faster-in...
- ksherlock 12y ago^W, ^U, ^C, ^S, ^Q, ^Z, etc are handled by the terminal driver. See stty -a
- jdmoreira 12y agohttps://github.com/0nn0/terminal-mac-cheatsheet/wiki/Terminal-Cheatsheet-for-Mac-(-basics-) https://github.com/0nn0/terminal-mac-cheatsheet/wiki/Termina...
- cwt 12y agoThis is glorious!