0

I used oh-my-zsh for a while and found one of its nice features, where I could complete my command using up and down arrow keys.

I want to recreate the feature, and even browsed it source code and this is what I have so far: https://termbin.com/vlaj in my ~/.zshrc. Say my history is like this:

1 nvim hello-word.sh

2 nvim fibonacci.c

3 nvim cmatrix.py

Now if i had $ nvim he and i press up arrow key, it becomes nvim cmatrix.py , and not nvim hello-word.sh as it would in oh-my-zsh. I found this to be helpful, but it doesn't fix it: https://github.com/ohmyzsh/ohmyzsh/issues/1720

0

Does this plugin fulfill your need?

https://github.com/zsh-users/zsh-history-substring-search

1
  • Thanks, it works as expected! – astroanax Nov 27 '20 at 4:30

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.