How to customize .inputrc to make Command-Delete and Option-Delete delete lines and words in iTerm 2?
⌘← can be assigned to \eOH and ⌘→ to \eOF. You could assign ⌥← to \eb like in Terminal, but it doesn't work in vi mode or nano.




In emacs mode you could also add this to .inputrc:

"\e[1;9D": backward-word
"\e[1;9C": forward-word
"\e[3~": kill-word


C-v shows the escape sequence for the next key combination. ^[ is ESC in caret notation. bind -p prints currently bound commands.