ohmyzsh: history-substring-search doesn't work after update to Ubuntu 12.10 [has workaround]
history-substring-search just doesn’t work since I update my distro from 12.04 to 12.10.
I mean that when I type smth, eg ls and press up-arrow button, it shows me last history item, not started from ls.
My .zshrc
$ cat .zshrc | grep -v -E "^# .*"
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="clean" # fletcherm
plugins=(git history-substring-search command-not-found)
source $ZSH/oh-my-zsh.sh
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
ZSH version
$ zsh --version
zsh 5.0.0 (i686-pc-linux-gnu)
About this issue
- Original URL
- State: closed
- Created 12 years ago
- Comments: 79 (9 by maintainers)
Commits related to this issue
- fix history substring search! https://github.com/robbyrussell/oh-my-zsh/issues/1433#issuecomment-44010147 — committed to joeybaker/dotfiles by joeybaker 10 years ago
For me it appeared to be something I did corrupted the .zcompdump / .zcompdump.zwc files on Mac. I trashed the files and restarted the shell and my issue appears to be gone.
In case it’s helpful. I have Ubuntu 12.10, zsh 5.0.0 (x86_64-unknown-linux-gnu) with the same issue initially.
Putting “export DEBIAN_PREVENT_KEYBOARD_CHANGES=yes” in .zshrc does not fix the issue. But putting “DEBIAN_PREVENT_KEYBOARD_CHANGES=yes” into .zshenv appears solving the problem for me.
Could be related to the order of setting this variable.
Fortunately, there is a workaround.
Put this line to ~/.zshenv: