I want to use command + arrows to move cursor to the beginning and to the end of line, alt + arrows to move it trough words in Terminal (zsh shell).
Are there ways to do this?
I've been trying to figure this out as well. I found this info here that might be helpful, however I haven't been able to do exactly what you've described. I'll keep on it, but passed this along in case you hadn't seen it.