Bash tends to use libreadline for commandline input, so you can create an inputrc file that lets you control what keystrokes do what.  man readline 3 should explain the format, you can also find this in the READLINE section of bash's manpage (the specific command you want is kill-word)

zsh doesn't use libreadline apparently, but it seems they've mimicked a lot of the functionality.  It looks like there are some options to mimic bash's word matching, but you'll need to bind them to a key.

Anybody knows if there is a counterpart for CTR+w , that deletes immediate words after cursor
Is it possible to create sharing rules at run-time? If yes then please explain how can we do that in save method/trigger?

Actually i need to bypass role hierarchy setting and for that i need to create Sharing Rules at run-time to give a particular user(is a field on opportunity) to edit right on that opportunity. Actually that particular user comes below in role hierarchy than the owner of opportunity.
