I have my iTerm2 configured with a shortcut to delete a word (keyboard mapping of Hex code 0x17). However, I want it to delete until reaching a whitespace:
Current:
cd hello-world
-> cd hello-
Wanted:
cd hello-world
-> cd
Is there a way to configure the non-word separators somehow? Or to achieve this by other means?
zsh
, right? I believe that is the default on macOS these days. Please edit your question adn add that in (if you don't know, look at the output ofps -p $$
, does it mentionbash
orzsh
? – terdon Jan 29 '23 at 15:33zsh
tag - also, @Kusalananda - the link you provided seemed to solve it! – Yaron Budowski Jan 29 '23 at 21:05