Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install manually (without Brew)? #126

Closed
ovogel-wigital opened this issue Jan 7, 2022 · 3 comments
Closed

How to install manually (without Brew)? #126

ovogel-wigital opened this issue Jan 7, 2022 · 3 comments

Comments

@ovogel-wigital
Copy link

How do I install the plugin without Homebrew?

I tried to clone the repository and include the script to .zshrc. Like that:

1. Clone Repository

git clone https://github.com/zsh-users/zsh-history-substring-search.git ~/.zsh/plugins/zsh-history-substring-search

2. Source in .zshrc

source ~/.zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down

This does not seem to work. Did I miss something or is there any other way?

Any help would be greatly appreaciated.

@guidovansteen
Copy link
Member

It works from the docker image zshusers/zsh. So, I guess the problem occurs somewhere on your side.

@ovogel-wigital
Copy link
Author

Ok, thanks for the quick response. I will try again.

@ovogel-wigital
Copy link
Author

FYI. The issue was a wrong key binding. Maybe it is OS releated. '^[[A' works on Mac OS but does not seem to work on Windows. I switched the binding to the suggested value and now it works.

bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down

bindkey "$terminfo[kcuu1]" history-substring-search-up
bindkey "$terminfo[kcud1]" history-substring-search-down

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants