end-of-line, beginning-of-line keys for Terminal.app on Macbook Pro Keyboard
Ctrl + a
and Ctrl + e
for beginning and end respectively.
Bonus: Ctrl + w
deletes the previous word.
EDIT: As far as I can tell, you are using the zsh
shell, which by default does not use Emacs key bindings. To get the behaviour you want, do the following during your session:
echo "bindkey -e" >> ~/.zshrc && source ~/.zshrc
You should be good to do. For more keybinding information, please check the relevant section from the Zsh manual.
fn+← and fn+→ work for me (they represent Home and End respectively).
More convenient than ctrl+A and ctrl+E in my opinion.