Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
da01dc91
Unverified
Commit
da01dc91
authored
Jun 10, 2020
by
Małgorzata Basińska
Committed by
GitHub
Jun 10, 2020
Browse files
web-search: add Google Scholar (#9014)
parent
60442dc4
Changes
2
Hide whitespace changes
Inline
Side-by-side
plugins/web-search/README.md
View file @
da01dc91
...
@@ -41,6 +41,7 @@ Available search contexts are:
...
@@ -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:
...
...
plugins/web-search/web-search.plugin.zsh
View file @
da01dc91
...
@@ -22,6 +22,7 @@ function web_search() {
...
@@ -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'
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment