iTerm2 Home and End Buttons

After being somewhat unhappy with the Apple Terminal application since the very beginning, I found a very nice alternative in iTerm2! Everything seems to work fine from tabbing, splitting horizontally and vertically, cursor observation to fancy growl support.

The only pain were misconfigured Home and End keys. The approriate information on the iTerm2 homepage did not really give me the solution right out of the box, so I paste it here.

Make sure that your TERM variable is the same as set in your iTerm2 profile (in preferences) and add the following two esape sequences to your key configuration:

ButtonEscape Sequence
HomeEsc + [1~
EndEsc + [4~

It should work right after adding the sequences!
That’s it,
Cheers!
iss