mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-18 10:22:00 +00:00
feat(web-search): add ask.com (#11292)
This commit is contained in:
parent
9f2bbebdf7
commit
15014db8d5
2 changed files with 3 additions and 0 deletions
|
@ -43,6 +43,7 @@ Available search contexts are:
|
||||||
| `wolframalpha` | `https://wolframalpha.com/input?i=` |
|
| `wolframalpha` | `https://wolframalpha.com/input?i=` |
|
||||||
| `archive` | `https://web.archive.org/web/*/` |
|
| `archive` | `https://web.archive.org/web/*/` |
|
||||||
| `scholar` | `https://scholar.google.com/scholar?q=` |
|
| `scholar` | `https://scholar.google.com/scholar?q=` |
|
||||||
|
| `ask` | `https://www.ask.com/web?q=` |
|
||||||
|
|
||||||
Also there are aliases for bang-searching DuckDuckGo:
|
Also there are aliases for bang-searching DuckDuckGo:
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@ function web_search() {
|
||||||
wolframalpha "https://www.wolframalpha.com/input/?i="
|
wolframalpha "https://www.wolframalpha.com/input/?i="
|
||||||
archive "https://web.archive.org/web/*/"
|
archive "https://web.archive.org/web/*/"
|
||||||
scholar "https://scholar.google.com/scholar?q="
|
scholar "https://scholar.google.com/scholar?q="
|
||||||
|
ask "https://www.ask.com/web?q="
|
||||||
)
|
)
|
||||||
|
|
||||||
# check whether the search engine is supported
|
# check whether the search engine is supported
|
||||||
|
@ -64,6 +65,7 @@ alias stackoverflow='web_search stackoverflow'
|
||||||
alias wolframalpha='web_search wolframalpha'
|
alias wolframalpha='web_search wolframalpha'
|
||||||
alias archive='web_search archive'
|
alias archive='web_search archive'
|
||||||
alias scholar='web_search scholar'
|
alias scholar='web_search scholar'
|
||||||
|
alias ask='web_search ask'
|
||||||
|
|
||||||
#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