Global Nav Open Menu Global Nav Close Menu; Apple; Shopping Bag +. YouTube for Android Auto without ROOT (rootless). Contribute to croccio/CarTube development by creating an account on GitHub.
Question or issue on macOS:
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:
How to solve this problem?
Solution no. 1:
I use a handy app called Karabiner to do this, and many other things. It’s free and open source.
It’s a keyboard remapper, with a lot of handy presets for many common remaps that people may want to do.
As you can see from the screenshot, this remap is included as a preset in Karabiner.
Hope this helps. Happy remapping!
Solution no. 2:
these work for me
Solution no. 3:
In the latest Mac OS You can use shift
+ home
or shift
+ end
Solution no. 4:
As setup in the terminal using vi
:
Jumper (pepperoni_pizza55554) Mac Os Catalina
The Home
button on a Macbook Pro keyboard: Fn + Left Arrow
.
The End
button on a Macbook Pro keyboard: Fn + Right Arrow
.
Solution no. 5:
For iterm2:
Jumper (pepperoni_pizza55554) Mac Os Download
Go to Profiles / Open Profiles / Keys
Set Cmd + left_arrow_key
to Send Hex Code 001
Set Cmd + right_arrow_key
to Send Hex Code 005
This allows you to use Cmd + arrow_keys
to move from beginning to end of the line.
Solution no. 6:
I am not sure if this will work for you (I still use OS 10.8
), but these work for my terminal:
Hope this helps!
Solution no. 7:
fn + leftArraw or fn + rightArrow
worked for me!
Solution no. 8:
Here I found a tweak for this, without any third party tool. This will make the following shortcut to work:
- Open terminal preferences.(
cmd + ,
). - Go to your selected theme and then to the keyboard tab.
And add a new entry as following.
That’s all. Now close and check.
Hope it helps.
EDIT: Refer to the comment by @Maurice Gilden below for more insights.
Solution no. 9:
For latest mac os, Below shortcuts works for me.
Jump to beginning of the line shift + fn + RightArrow
Jump to ending of the line shift + fn + LeftArrow
Solution no. 10:
You could download Better Touch Tools. It’s an app that allows you to make custom key-bindings and shortcuts over your entire system or individual apps. Using it, you could make a shortcut in the terminal that emulates ctrl-a/ctrl-e whenever you press cmd-left/cmd-right, respectively. I definitely recommend it! I’ve been using it for years and I have over 50 shortcuts spread across several different apps.