I switched to Catalina and enabled ZSH now the home/end key do not work in terminal

bashcatalinaterminalzsh

I switched to ZSH from BASH as per the upgrade in Catalina and all is well except my home/end keys no longer work. This can be really annoying trying to move my cursor over super far to the left instead of a single home click.

Any idea if they just changed the key you use to "go to start of command" instead of home? Or is there a bug?

Best Answer

The other answers didn't work for me when connecting over SSH to the Mac. I had to add the following lines to my ~/.zshrc to get Home and End to work:

bindkey "^[[H" beginning-of-line
bindkey "^[[F" end-of-line