When my command is long and I move the cursor through it, it jumps randomly to different places and start writing in any location of the command.

I'm using OS X El Capitan (10.11.6) and have installed oh my zsh. I've also tested an alternative terminal (iTerm) and the same is happening.

enter image description here

1 Answer 1


I've just added

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

to the file


and solved the issue

  • Where do you add this?
    – DeltaFlyer
    Jun 15, 2020 at 21:11
  • 1
    I've been looking for ages for this solution, thank you! Why does ZSH not warn me about this or something? I assume this isn't expected behavior?
    – Jan M.
    Mar 23, 2021 at 10:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .