OS X Terminal shortcut: Jump to beginning/end of line

23tux picture 23tux · Mar 31, 2015 · Viewed 96.5k times · Source

I know that I can jump at the beginning and end of a line inside the OS X terminal with Ctrl+A and Ctrl + E. But I'm so used to jump with Cmd+Right arrow and Cmd+Left arrow from my editor, that I would love to use this shortcuts also for the terminal.

I haven't found a solution on google, so maybe here someone can help.

Update

As in the comments, I tried the solution from Is there any way in the OS X Terminal to move the cursor word by word?

Unfortunately, the Terminal settings seems to not include Cmd as a Modifier Key, as you can see here:

Modifier Keys of Terminal

Answer

hygoh2k picture hygoh2k · Jul 15, 2017
fn + shift + leftArrow = goto beginning of line
fn + shift + rightArrow = goto end of line

these work for me