1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-21 03:41:57 +00:00

feat(web-search): add deepL (#12165)

This commit is contained in:
とんとんぼ 2024-01-16 18:37:13 +09:00 committed by GitHub
parent 8be4789bbb
commit 35a5357704
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -45,6 +45,7 @@ Available search contexts are:
| `scholar` | `https://scholar.google.com/scholar?q=` | | `scholar` | `https://scholar.google.com/scholar?q=` |
| `ask` | `https://www.ask.com/web?q=` | | `ask` | `https://www.ask.com/web?q=` |
| `youtube` | `https://www.youtube.com/results?search_query=` | | `youtube` | `https://www.youtube.com/results?search_query=` |
| `deepl` | `https://www.deepl.com/translator#auto/auto/` |
Also there are aliases for bang-searching DuckDuckGo: Also there are aliases for bang-searching DuckDuckGo:

View file

@ -26,6 +26,7 @@ function web_search() {
scholar "https://scholar.google.com/scholar?q=" scholar "https://scholar.google.com/scholar?q="
ask "https://www.ask.com/web?q=" ask "https://www.ask.com/web?q="
youtube "https://www.youtube.com/results?search_query=" youtube "https://www.youtube.com/results?search_query="
deepl "https://www.deepl.com/translator#auto/auto/"
) )
# check whether the search engine is supported # check whether the search engine is supported
@ -68,6 +69,7 @@ alias archive='web_search archive'
alias scholar='web_search scholar' alias scholar='web_search scholar'
alias ask='web_search ask' alias ask='web_search ask'
alias youtube='web_search youtube' alias youtube='web_search youtube'
alias deepl='web_search deepl'
#add your own !bang searches here #add your own !bang searches here
alias wiki='web_search duckduckgo \!w' alias wiki='web_search duckduckgo \!w'