Zsh Plugin: Web Search

Today

Description

Enables quick web searches directly from command line using various search engines without switching to browser.
GitHub

Essential Commands

Advanced Commands

Usage Examples

# Programming searches
google "javascript promises tutorial"
github "react component library"
stackoverflow "zsh command not found"
scholar "machine learning algorithms"
 
# Open search homepage (no arguments)
google              # Opens google.com
github              # Opens github.com
 
# Custom search engines (in .zshrc)
ZSH_WEB_SEARCH_ENGINES=(
  reddit "https://www.reddit.com/search/?q="
  npm "https://www.npmjs.com/search?q="
)