Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

2 Answers

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
1  
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
add comment

Solved.

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
add comment

Your Answer

 
discard

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.