How do I make

+ and + move the text cursor very left and right of the terminal entry line. This keyboard shortcut works on most things on my mac book but not the Terminal.

Usually I use the home and end keys on other non apple computers. Strangely enough +A and +E achieve this in the mac terminal but it is the wrong key combination in my opinion. I want to do it using + and +.

It is similar to this question, however I want to specifically map it to + and +.

Can home and end keys be mapped when using Terminal?

  • 2
    At the risk of sounding like a purist: ⌃+E and ⌃+A are the right ones, and ⌘+← and ⌘+→ are wrong. The E and A also work everywhere else in standard Mac text editing places, and on every Linux, Unix and BSD. – John Keates Sep 24 '16 at 9:48

You can use Better Touch Tool for this (it's no longer free, 5$ minimum), just assign keyboard shortcuts to work in Terminal app only. Remap ⌘ CMD+ to ⌃ CTRL+A and ⌘ CMD+ to ⌃ CTRL+E. Here's the sample:

enter image description here

| improve this answer | |
  • 1
    BTT is no longer free, but has a "pay what you want" license, with a minimum of $5 – Ciprian Tomoiagă Sep 22 '17 at 7:20
  • @CiprianTomoiaga thanks for the update! Next time feel free to edit an answer :) – Mateusz Szlosek Sep 22 '17 at 8:20

You can adjust the keybindings in Terminals preferences under Profiles -> Keyboard. This is on a Profile by profile basis. Map control+a (\001) to the goto beginning of line and control+e (\005) to go to the end of the line to any keyboard shortcut you want (just don't overwrite anything important already in use) Terminal Preference

| improve this answer | |
  • 1
    this method doesnt work with the cmd key – Robbo_UK Feb 6 '15 at 17:35
  • Ahhh... I see. It seems that Command modifiers are used by the App itself (including, sort of, cmd+arrows). – sdmeyers Feb 6 '15 at 19:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .