[three]Bean

skipping words in zsh

Nov 21, 2011 | categories: zsh View Comments

About a half year ago I started using zsh after having been introduced to the GRML config. It boasts a ton of great features including remote tab-completion over ssh under the hood (when trying to remember a path for scp for instance). It's been great, but the one thing I've been missing is that old word-skipping feature from bash; pressing ctrl-left and ctrl-right is really nice.

After finding (in multiple places) cake that was really a lie, I finally found it commented out at the bottom of a random .zshrc. I added it to my ~/.zshrc.local and am finally in business.

bindkey '^[[1;5D' emacs-backward-word
bindkey '^[[1;5C' emacs-forward-word
View Comments
blog comments powered by Disqus