Customise Mac Terminal command: Control+w
I am trying to find a way to customise Mac Terminal command:Control+w which can also consider delimiters like =, -. Currently Space is only way it considers. For example for the command
$foo --option=foos
If I use Control+w, it deletes --option=foos but I want it to delete firstly till =, then next delimiter identified, if I pass command once more
Not directly modifying ctrl + W, but the same behaviour can be achieved using ESC + delete. Every time, escape key would have to be released and then pressed.
- Mac Terminal: Delete a word at time