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

I successfully installed zsh, change config on my old, but it's not working properly.

I don't know how this feature calls. When i write something - sudo for instance, and press ↑ (arrow up) it doesn't searching line with this start text in history, it's just return previous line. this is my zshrc file

Of course, the history contains expected lines.

share|improve this question
up vote 2 down vote accepted

It sounds to me that you are referring to the zsh-history-substring-search plugin. In which case, the first thing I noticed in your .zshrc is that you are not including that plugin in your list.

Change this line:

plugins=(git rvm rails3 bundler gem)


plugins=(git rvm rails3 bundler gem history-substring-search)
share|improve this answer
Not working. Before Mint, in Kubuntu it works fine without that plugin. – Alder Dec 15 '12 at 17:04
Try adding DEBIAN_PREVENT_KEYBOARD_CHANGES=yes to your ~/.zshenv. Refer to this issue: github.com/robbyrussell/oh-my-zsh/issues/1433 – jonyamo Dec 15 '12 at 17:09
Great! Thanks, it works! – Alder Dec 15 '12 at 17:12
No problem. Glad it works for you now. – jonyamo Dec 15 '12 at 22:09

If you are using Linux Mint Debian Edition (LMDE), then add these lines to your ~/.zshrc:

# keybindings for history autocomplete
[[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" history-beginning-search-backward
[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" history-beginning-search-forward

It works better than the plugin because the plugin requires typing at least 3 chars, while the keybindings start working at the first char typed.

share|improve this answer

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.