-
Notifications
You must be signed in to change notification settings - Fork 146
Open
Description
Summary
I have just newly pick up zinit but while making the swap from OMZ, i came across an issue regarding the web-search plugin.
Using the web_search() function defined return some missing code :
$ ddg thisisawebsearch
zsh: command not found: omz_urlencode
zsh: command not found: open_command
Note:
ddgis an alias forweb_search duckduckgo
Proposed fix
I have manually looked into the plugin's code and search for the missing functions omz_urlencode() and open_command() and found them in the file function.zsh (link) in the lib folder of OMZ.
Getting that file and sourcing it patched the error.
I do not have any knowledge of how many OMZ plugin use functions from its lib like that nor to what extent the zinit project could suffer from copying those lib file but it might be an option to consider to fully support OMZ plugins out of the box.
Metadata
Metadata
Assignees
Labels
No labels