How to get fn + left key working on macOS after changing to zsh from bash?
To get fn-left (Home) and fn-right (End) working, add these two lines to ~/.zshrc (for your user only), or /etc/zshrc (for everybody)
bindkey &quot;^[[H&quot; beginning-of-line
bindkey &quot;^[[F&quot; end-of-line