80ba54a94fe7d7628d159823d5c63e12811c68b0

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

Add Yandex support to web-search plugin

Diff

 1diff --git a/plugins/web-search/web-search.plugin.zsh b/plugins/web-search/web-search.plugin.zsh
 2index 1e661250ac3b6a3a293cad9c3ed8a3533d739c5a..5e3c00d3ce74cdd7fd617179a445d266bd1a93f4 100644
 3--- a/plugins/web-search/web-search.plugin.zsh
 4+++ b/plugins/web-search/web-search.plugin.zsh
 5@@ -10,6 +10,7 @@ function web_search() {
 6     bing        "https://www.bing.com/search?q="
 7     yahoo       "https://www.yahoo.com/search?q="
 8     duckduckgo  "https://www.duckduckgo.com/?q="
 9+    yandex      "http://yandex.ru/yandsearch?text="
10   )
11 
12   # define the open command
13@@ -46,6 +47,8 @@ alias bing='web_search bing'
14 alias google='web_search google'
15 alias yahoo='web_search yahoo'
16 alias ddg='web_search duckduckgo'
17+alias yandex='web_search yandex'
18+
19 #add your own !bang searches here
20 alias wiki='web_search duckduckgo \!w'
21 alias news='web_search duckduckgo \!n'