What is iTerm2?
iTerm2 is a replacement for Terminal and the successor to iTerm. It works on Macs with macOS 10.12 or newer. iTerm2 brings the terminal into the modern age with features you never knew you always wanted.
Why do you need it?
If you spend a lot of time in a terminal, then you'll appreciate all the little things that add up to a lot. It is free software and you can find the source code on Github.
In most MacOS application you can hold ⌥ button and one of the arrow keys to jump words for faster navigation while editing large blocks of code.
Unfortunately, iTerm2 does not have these shortcuts by default, so having to change an argument in a long command (or correct a typo) can be a case of pressing ← and waiting.
Easiest way to setup KeyBoard Shortcut.
preference -> profile -> keys -> Natural key Editing
List of Keyboard Combination Below.
|Delete word||⌥ + delete|
|Delete line||⌘ + delete|
|Move cursor one word left||⌥ + ←|
|Move cursor one word right||⌥ + →|
|Move cursor to beginning of line||⌘ + ←|
|Move cursor to end of line||⌘ + →|
|Clear Screen||⌘ + k|