How to configure Ctrl+backspace Linux behavior in macOS terminal?
To get this to work the way you want, you have to set the option key to be used as a Meta key. To do this:
- Launch Terminal
- Go to Terminal > Preferences...
- Select the Profiles icon at top
- Select the profile you're using from the lefthand side
- Click on the Keyboard tab on the righthand side
- Now tick the Use Option as Meta key checkbox at bottom of the screen
- Exit preferences
Now to achieve what you want, do as follows:
Press option + delete to delete back one word