These keybindings make working with iTerm2 on a Mac much easier! Credit to https://stackoverflow.com/a/22312856 (@sqren)
Keyboard Combination: ⌥ + ←
Action: Send Hex Code
Code: 0x1b 0x62
Keyboard Combination: ⌥ + →
Action: Send Hex Code
Code: 0x1b 0x66
Keyboard Combination: ⌘ + ←
Action: Send Hex Code
Code: 0x01
Keyboard Combination: ⌘ + →
Action: Send Hex Code
Code: 0x05
Keyboard Combination: ⌥ + ←Delete
Action: Send Hex Code
Code: 0x1b 0x08
Keyboard Combination: ⌘ + ←Delete
Action: Send Hex Code
Code: 0x15
Keyboard Combination: ⌘ + z
Action: Send Hex Code
Code: 0x1f
Open the “Profiles” tab
Click the sub-tab ”Keys”
Remove the mappings for key combinations ⌥ + ← and ⌥ + →