Configure the End and Home key combinations for the macOS terminal

Go to Preferences > Profiles > Keyboard then:

  • Home: update ^← from \033[1;5D to \001
  • End: update ^→ from \033[1;5C to \005