Ever find yourself holding down the Delete key on the command line? Here's a way to work faster.
When you type something you don't want to run on the command line it can be annoying to hold down delete
until everything you want to remove is gone.
There is always the nuclear option, in which you cancel the current command with ctrl
+c
and start over.
But often it would be better to delete one word at a time, as you can in most text editing programs on Mac. The standard pattern is option
+delete
. But that doesn't work as expected out of the box with Terminal or iTerm2. Here's how you can set it up.
option
+delete
in Terminalcmd
+,
).option
+delete
in Terminalcmd
+,
).Want to receive approximately one email every month with new articles, tools, and references I've discovered? Sign up below.
This site was created and is maintained by Sean C Davis. It was designed by Matt Willett.
The stack is Eleventy, Tailwind CSS, and loads of other open-source software. The code is built, deployed, and hosted with help from GitHub and Netlify.
And here's a super important legal document Sean made up.