Install

brew reinstall --cask iterm2

Remaping for navigation

source: https://apple.stackexchange.com/a/293988

  1. Go to iTerm2 (in the menu bar) > Settings… > Profiles > Keys (not Preferences… > Keys)
  2. On current versions (3.14+) you then switch to the Key Mappings tab
  3. Press Presets… dropdown button.
  4. Select Natural Text Editing

Install oh my zsh

Material colors in the terminal

  1. Go to https://github.com/MartinSeeler/iterm2-material-design?tab=readme-ov-file
  2. Follow instructions there

If option + delete does no work

source:

Select Profiles > Keys > Key Mappings > Presets > Natural Text Editing.

Then in key mappings > send hex codes: 0x17 for option + delete