A web search plugin for ZSH.
.zshrc
file:source /path/to/zsh-web-search/zsh-web-search.zsh
.zshrc
file.To perform a web search, simply type web_search
followed by your search query and press Enter. The plugin will open your default web browser and perform the search using the specified search engine.
If there is no parameter of searching keywords, it will open the homepage of the search engine.
To make it more efficient, you can set aliases for the search engines you use most frequently. For example, you can add the following lines to your .zshrc
or zsh-web-search.zsh
file:
alias google='web_search google' alias bing='web_search bing'
Now, you can use google
and bing
as aliases for the corresponding search engines.
To add more search engines, you can add them to the zsh-web-search.zsh
file. For example, to add the parameter for GitHub, add the entry to this Associative Array:
declare -A search_url_arr=( ... ["github"]="https://github.com/search?q=" ... )
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4