mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01:00
feat(web-search): add deepL (#12165)
This commit is contained in:
@@ -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:
|
||||||
|
|
||||||
|
|||||||
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user