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.


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)
| improve this answer | |

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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