zsh-users / zsh-history-substring-search

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

Prevent overriding of environment variables #119

Closed andyrichardson closed 3 years ago

andyrichardson commented 3 years ago

About

This PR fixes an issue where the plugin is loaded after config environment variables are set.

e.g.

HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND='bg=red,fg=white,bold'
source zsh-history-substring-search.zsh

Note: I might be getting this completely wrong - feel free to let me know if that is the case

ericbn commented 3 years ago

Hi @andyrichardson. I'm suggesting the same in #108.

sunaku commented 3 years ago

Merged #108 (which has a simpler implementation) instead of this one. Thanks for your submission! :heart: Sorry it wasn't chosen. :sweat_smile: