Zsh – Skipping words

A couple of weeks ago I installed zsh on all of my shell accounts, and I’ve started to grow found of it. However, one thing that annoyed me is that per default I couldn’t press ctrl+arrows to jump back and forth amongst words like I could in bash.

However, the solution was quite easy as soon as I read the manual. First, in your terminal press ctrl+arrow, and copy the code that appears on your terminal. In my case it was “;5D” and “;5C”.

Then in your .zshrc file put:

bindkey “;5D” backward-word
bindkey “;5C” forward-wordbindkey

That should do it

  1. No comments yet.

  1. No trackbacks yet.