Skip to content

Adds PowerShell functions for searching the web with several popular services.

License

Notifications You must be signed in to change notification settings

jcwillox/pwsh-search-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Search-Web

This is a PowerShell implementation of the oh-my-zsh web-search plugin. It allows you to search the web using a variety of services

Installation

Scoop

scoop bucket add jcwillox https://github.com/jcwillox/scoop-bucket
scoop install pwsh-search-web

Usage

  • Search-Web <context> <term>...
  • <context> <term>...
Search-Web google oh-my-zsh
google oh-my-zsh

Available search contexts are:

Context URL
bing https://www.bing.com/search?q=
google https://www.google.com/search?q=
yahoo https://search.yahoo.com/search?p=
duckduckgo https://www.duckduckgo.com/?q=
startpage https://www.startpage.com/do/search?q=
yandex https://yandex.ru/yandsearch?text=
github https://github.com/search?q=
baidu https://www.baidu.com/s?wd=
ecosia https://www.ecosia.org/search?q=
goodreads https://www.goodreads.com/search?q=
qwant https://www.qwant.com/?q=
givero https://www.givero.com/search?q=
stackoverflow https://stackoverflow.com/search?q=
wolframalpha https://wolframalpha.com/input?i=
archive https://web.archive.org/web/*/
scholar https://scholar.google.com/scholar?q=
reddit https://www.reddit.com/search/?q=

Also there are aliases for bang-searching DuckDuckGo:

Context Bang
wiki !w
news !n
youtube !yt
map !m
image !i
ducky !

Custom Engines & Bangs

Set the $SearchWebEngines or $SearchWebBangs variables before importing the module to add custom engines or bang-searches

$SearchWebEngines = @{
    reddit = "https://www.reddit.com/search/?q="
}

$SearchWebBangs = @{
    youtube = "!yt"
}

Import-Module SearchWeb

About

Adds PowerShell functions for searching the web with several popular services.

Topics

Resources

License

Stars

Watchers

Forks