mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 08:50:08 +00:00
Add Baidu support to web-search plugin
This commit is contained in:
parent
3d5b3430fd
commit
9caa215a2f
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,7 @@ function web_search() {
|
||||||
duckduckgo "https://www.duckduckgo.com/?q="
|
duckduckgo "https://www.duckduckgo.com/?q="
|
||||||
yandex "https://yandex.ru/yandsearch?text="
|
yandex "https://yandex.ru/yandsearch?text="
|
||||||
github "https://github.com/search?q="
|
github "https://github.com/search?q="
|
||||||
|
baidu "https://www.baidu.com/s?wd="
|
||||||
)
|
)
|
||||||
|
|
||||||
# define the open command
|
# define the open command
|
||||||
|
@ -51,6 +52,7 @@ alias yahoo='web_search yahoo'
|
||||||
alias ddg='web_search duckduckgo'
|
alias ddg='web_search duckduckgo'
|
||||||
alias yandex='web_search yandex'
|
alias yandex='web_search yandex'
|
||||||
alias github='web_search github'
|
alias github='web_search github'
|
||||||
|
alias baidu='web_search baidu'
|
||||||
|
|
||||||
#add your own !bang searches here
|
#add your own !bang searches here
|
||||||
alias wiki='web_search duckduckgo \!w'
|
alias wiki='web_search duckduckgo \!w'
|
||||||
|
|
Loading…
Reference in a new issue