mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-18 18:31:59 +00:00
feat(web-search): add deepL
(#12165)
This commit is contained in:
parent
8be4789bbb
commit
35a5357704
2 changed files with 3 additions and 0 deletions
|
@ -45,6 +45,7 @@ Available search contexts are:
|
|||
| `scholar` | `https://scholar.google.com/scholar?q=` |
|
||||
| `ask` | `https://www.ask.com/web?q=` |
|
||||
| `youtube` | `https://www.youtube.com/results?search_query=` |
|
||||
| `deepl` | `https://www.deepl.com/translator#auto/auto/` |
|
||||
|
||||
Also there are aliases for bang-searching DuckDuckGo:
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ function web_search() {
|
|||
scholar "https://scholar.google.com/scholar?q="
|
||||
ask "https://www.ask.com/web?q="
|
||||
youtube "https://www.youtube.com/results?search_query="
|
||||
deepl "https://www.deepl.com/translator#auto/auto/"
|
||||
)
|
||||
|
||||
# check whether the search engine is supported
|
||||
|
@ -68,6 +69,7 @@ alias archive='web_search archive'
|
|||
alias scholar='web_search scholar'
|
||||
alias ask='web_search ask'
|
||||
alias youtube='web_search youtube'
|
||||
alias deepl='web_search deepl'
|
||||
|
||||
#add your own !bang searches here
|
||||
alias wiki='web_search duckduckgo \!w'
|
||||
|
|
Loading…
Reference in a new issue