How to make command+arrow go to begining and end of line in iterm2?

Solution 1:

Source:

  • Go to settings (⌘ Command+,)
  • Go to tab Keys
  • Under "Key Bindings"
  • Change entry ⌘ Command to Send Hex code: 0x01
  • Change entry ⌘ Command to Send Hex code: 0x05

Visual: Visual of iTerm 2 Settings