If you use && instead of ; then you won't have the typo problem.
Re:Kali Linux 2020.3
by codetrotter on Monday August 24, 2020 @06:29PM
(#24266272)
True, but that means typing another character and I am lazy :p
With bash I’d just Ctrl+a and type “cd src ;” and then press ctrl+e and continue typing what I was typing.
I got so used to doing it that way, that even after switching to zsh I still do it this way.
The disadvantage of my way of doing it is if you typo the path. But I tab complete pretty much always, so in practice I don’t have the problem of typoing directory names without noticing.
I probably should learn those zsh ways of doing things. Will try to remember to do it the zsh way next time I need to do something like the things you mentioned.