diff options
author | Denys Dovhan <denysd96@gmail.com> | 2018-10-03 19:02:21 +0300 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2018-10-03 18:02:21 +0200 |
commit | 2e0a5cbefd97f4e40baa2b7b351e2d44d260a59e (patch) | |
tree | a8acde79a7e3203fe1008fb425ea857827353336 /plugins/web-search/README.md | |
parent | d1e1f1f340518c8db07401a04ba8550624785317 (diff) | |
download | zsh-2e0a5cbefd97f4e40baa2b7b351e2d44d260a59e.tar.gz zsh-2e0a5cbefd97f4e40baa2b7b351e2d44d260a59e.tar.bz2 zsh-2e0a5cbefd97f4e40baa2b7b351e2d44d260a59e.zip |
web-search: add README (#7203)
Diffstat (limited to 'plugins/web-search/README.md')
-rw-r--r-- | plugins/web-search/README.md | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/plugins/web-search/README.md b/plugins/web-search/README.md new file mode 100644 index 000000000..d790d944d --- /dev/null +++ b/plugins/web-search/README.md @@ -0,0 +1,50 @@ +# web-search plugin + +This plugin adds aliases for searching with Google, Wiki, Bing, YouTube and other popular services. + +Open your `~/.zshrc` file and enable the `web-search` plugin: + +```zsh +plugins=( ... web-search) +``` + +## Usage + +You can use the `web-search` plugin in these two forms: + +* `web_search <context> <term> [more terms if you want]` +* `<context> <term> [more terms if you want]` + +For example, these two are equivalent: + +```zsh +$ web_search 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=` | +| `ddg` or `duckduckgo` | `https://www.duckduckgo.com/?q=` | +| `sp` or `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=` | + +Also there are aliases for bang-searching DuckDuckGo: + +| Context | Bang | +|-----------|-------| +| `wiki` | `!w` | +| `news` | `!n` | +| `youtube` | `!yt` | +| `map` | `!m` | +| `image` | `!i` | +| `ducky` | `!` | |