Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After the last system update the ctrl + left/right arrow command on zsh terminal doesn't do anything. Also ctrl+ u has something wrong because usually that command erase from the cursor to the beginning of the line, while now erase entire line.. Someone knows how to solve these problems? thank you all.

share|improve this question

Ctrl+U is most likely because you've got the cursor at the end of the line. Secondly, which version of Gentoo are you referring to as the "last system update"?

And what would you like the ctrl+left/right to do?

  • Add to zsh config:

bindkey '^[[1;5C' emacs-forward-word
bindkey '^[^[[D' emacs-backward-word

  • And from old scrap i found (might help):

bindkey ";5C" forward-word
bindkey ";5D" backward-word

  • or have a look at this link, which should help you out?

Note: If the config works but the supposed keys doesn't do what you want it's perhaps because the key-definition differs from yours and mine, do: cat > /dev/null and press the keys you'd like to get outputted and adjust accordingly.

share|improve this answer
"Ctrl+U is most likely because you've got the cursor at the end of the line" of course i mean when my cursor is in the middle."And what would you like the ctrl+left/right to do?" usually ctrl+left arrow : skip word going left etc... – riskio Dec 19 '12 at 11:53
And which shell/terminal are you using? Makre sure you use Emacs or whatever terminal you usually use and /bin/bash? are you running through screen? – Torxed Dec 19 '12 at 12:01
please read the question is there.. – riskio Dec 19 '12 at 12:17
Sorry, missed that part. Added a possible_ solution, not sure if that helps you out tho but might. – Torxed Dec 19 '12 at 12:45

FWIW, this is what worked on my environment (rhel5.x) using zsh's default.

bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
share|improve this answer
^[^[[D and ^[^[[C, respectively, for OSX – Jon z May 29 '15 at 14:52


Terminal used: Konsole.

To solve : right click on terminal (or settings in menubar) -> change current profile -> keyboard mapping -> change to Default (xfree4)

share|improve this answer
not even really related to zsh but sure, a fix is a fix. – Torxed Dec 19 '12 at 21:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.