From 9caa215a2f319b4af3369fb10a4e7ee16e03281d Mon Sep 17 00:00:00 2001 From: wubaiqing Date: Mon, 10 Aug 2015 11:41:48 +0800 Subject: [PATCH] Add Baidu support to web-search plugin --- plugins/web-search/web-search.plugin.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/web-search/web-search.plugin.zsh b/plugins/web-search/web-search.plugin.zsh index d407edb96..898eb2c3a 100644 --- a/plugins/web-search/web-search.plugin.zsh +++ b/plugins/web-search/web-search.plugin.zsh @@ -12,6 +12,7 @@ function web_search() { duckduckgo "https://www.duckduckgo.com/?q=" yandex "https://yandex.ru/yandsearch?text=" github "https://github.com/search?q=" + baidu "https://www.baidu.com/s?wd=" ) # define the open command @@ -51,6 +52,7 @@ alias yahoo='web_search yahoo' alias ddg='web_search duckduckgo' alias yandex='web_search yandex' alias github='web_search github' +alias baidu='web_search baidu' #add your own !bang searches here alias wiki='web_search duckduckgo \!w'