mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Merge 877e541fc6 into 61981951b1
This commit is contained in:
commit
c913aa63fd
1 changed files with 10 additions and 8 deletions
|
|
@ -6,14 +6,15 @@ function web_search() {
|
||||||
# define search engine URLS
|
# define search engine URLS
|
||||||
typeset -A urls
|
typeset -A urls
|
||||||
urls=(
|
urls=(
|
||||||
google "https://www.google.com/search?q="
|
google "https://www.google.com/search?q="
|
||||||
bing "https://www.bing.com/search?q="
|
bing "https://www.bing.com/search?q="
|
||||||
yahoo "https://search.yahoo.com/search?p="
|
yahoo "https://search.yahoo.com/search?p="
|
||||||
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="
|
baidu "https://www.baidu.com/s?wd="
|
||||||
ecosia "https://www.ecosia.org/search?q="
|
ecosia "https://www.ecosia.org/search?q="
|
||||||
|
stackoverflow "http://stackoverflow.com/search?q="
|
||||||
)
|
)
|
||||||
|
|
||||||
# check whether the search engine is supported
|
# check whether the search engine is supported
|
||||||
|
|
@ -45,6 +46,7 @@ alias yandex='web_search yandex'
|
||||||
alias github='web_search github'
|
alias github='web_search github'
|
||||||
alias baidu='web_search baidu'
|
alias baidu='web_search baidu'
|
||||||
alias ecosia='web_search ecosia'
|
alias ecosia='web_search ecosia'
|
||||||
|
alias so='web_search stackoverflow'
|
||||||
|
|
||||||
#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…
Add table
Add a link
Reference in a new issue