1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-28 20:35:17 +08:00

web-search: add Google Scholar (#9014)

This commit is contained in:
Małgorzata Basińska 2020-06-10 12:05:12 +02:00 committed by GitHub
parent 60442dc47b
commit da01dc91bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,7 @@ Available search contexts are:
| `stackoverflow` | `https://stackoverflow.com/search?q=` | | `stackoverflow` | `https://stackoverflow.com/search?q=` |
| `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=` |
Also there are aliases for bang-searching DuckDuckGo: Also there are aliases for bang-searching DuckDuckGo:

View File

@ -22,6 +22,7 @@ function web_search() {
stackoverflow "https://stackoverflow.com/search?q=" stackoverflow "https://stackoverflow.com/search?q="
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="
) )
# check whether the search engine is supported # check whether the search engine is supported
@ -60,6 +61,7 @@ alias givero='web_search givero'
alias stackoverflow='web_search stackoverflow' 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'
#add your own !bang searches here #add your own !bang searches here
alias wiki='web_search duckduckgo \!w' alias wiki='web_search duckduckgo \!w'