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
Best Answer
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.