zsh-users / zsh-history-substring-search

🐠 ZSH port of Fish history search (up arrow)
2.61k stars 156 forks source link

Allow users to set keys to be bind, before sourcing the script, using environment variables #123

Open ericbn opened 3 years ago

ericbn commented 3 years ago

This will save users from some common boilerplate code in their own .zshrc file.

Fixes #107

ericbn commented 3 years ago

@sunaku, PR updated.

lnicola commented 2 years ago

Nit: CONTROL is such a weird way to spell Ctrl.

ericbn commented 2 years ago

It was being spelled as "Control" and "C" and also "^" before. I tried to unify it to a common format ("CONTROL"), as we have other keys in all caps too (e.g. "UP", "DOWN") in the same document.

Fun fact: my keycaps actually spell it as "Control" :- ) keycaps

@sunaku, what do you prefer?