I’m working in Terminal a lot. Lately I more and more use my MacBook Pro instead of my Ubuntu desktop. I’d to overcome some small issues. One was the missing Home-key, which allows you to jump all the way to the left on the current line.
Although the Mac doesn’t have a Home key, its function is available by pressing Fn+Shift+Left Arrow. And even better: Fn+Shift+Right Arrow jumps all the way to the right.
I feel right at home! 🙂
I found this information very useful: http://kenyonralph.com/~kenyon/Mac_OS_X_Terminal.app/#index4h3
Terminal > Preferences > Keyboard tab:
(\033 = ESC)
* home: \033[1~
* end: \033[4~
* page down: \033[6~
* page up: \033[5~
* shift page up: scroll to previous page in buffer
* shift page down: scroll to next page in buffer
* shift home: scroll to start of buffer
* shift end: scroll to end of buffer
* Use option as meta key: checked.
Thanks Pim 🙂
Appears Pim van den Berg’s answer was slightly off. Home should be 33[H and end should be 33[F see http://apple.stackexchange.com/questions/12997/home-and-end-keys-with-terminal-on-macbook-pro/114528#114528
The home binding is not working, it just does “~” characters
Yeah I got that too, see http://apple.stackexchange.com/questions/12997/home-and-end-keys-with-terminal-on-macbook-pro/114528#114528