Skip to content

Commit

Permalink
web-search: add Wayback Archive (ohmyzsh#8784)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgimalac authored and dpond-adobe committed Mar 23, 2021
1 parent cbb27c7 commit 87e72b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/web-search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Available search contexts are:
| `givero` | `https://www.givero.com/search?q=` |
| `stackoverflow` | `https://stackoverflow.com/search?q=` |
| `wolframalpha` | `https://wolframalpha.com/input?i=` |
| `archive` | `https://web.archive.org/web/*/` |

Also there are aliases for bang-searching DuckDuckGo:

Expand Down
2 changes: 2 additions & 0 deletions plugins/web-search/web-search.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function web_search() {
givero "https://www.givero.com/search?q="
stackoverflow "https://stackoverflow.com/search?q="
wolframalpha "https://www.wolframalpha.com/input/?i="
archive "https://web.archive.org/web/*/"
)

# check whether the search engine is supported
Expand Down Expand Up @@ -57,6 +58,7 @@ alias qwant='web_search qwant'
alias givero='web_search givero'
alias stackoverflow='web_search stackoverflow'
alias wolframalpha='web_search wolframalpha'
alias archive='web_search archive'

#add your own !bang searches here
alias wiki='web_search duckduckgo \!w'
Expand Down

0 comments on commit 87e72b4

Please sign in to comment.