Skip to content

Commit 192de6b

Browse files
committed
Merge pull request ohmyzsh#4238 from wubaiqing/master
Add Baidu support to web-search plugin
2 parents 1605d82 + 9caa215 commit 192de6b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/web-search/web-search.plugin.zsh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function web_search() {
1212
duckduckgo "https://www.duckduckgo.com/?q="
1313
yandex "https://yandex.ru/yandsearch?text="
1414
github "https://github.com/search?q="
15+
baidu "https://www.baidu.com/s?wd="
1516
)
1617

1718
# check whether the search engine is supported
@@ -41,6 +42,7 @@ alias yahoo='web_search yahoo'
4142
alias ddg='web_search duckduckgo'
4243
alias yandex='web_search yandex'
4344
alias github='web_search github'
45+
alias baidu='web_search baidu'
4446

4547
#add your own !bang searches here
4648
alias wiki='web_search duckduckgo \!w'

0 commit comments

Comments
 (0)