First:
cp Profiles.json ~/Library/Application\ Support/iTerm2/DynamicProfiles
Under Preferences in iTerm2, select Brian's Profile
and click Other Actions... -> Set as Default.
Then under Keys -> Key Mappings -> Presets..., click Import.
Navigate to this directory and open keys.itermkeymap
.
Once the key map has gone into effect, you should be able to:
- Move the cursor to the previous/next word with Option+Left and Option+Right
- Move the cursor to the beginning/end of the line with Command+Left and Command+Right
- Delete the last word with Option+Delete
- Delete the line with Command+Delete