summaryrefslogtreecommitdiff
path: root/plugins/web-search
diff options
context:
space:
mode:
authorPierre Gimalac <pierre.gimalac@gmail.com>2020-06-03 18:28:47 +0200
committerGitHub <noreply@github.com>2020-06-03 18:28:47 +0200
commit0fd11130a3541e33aded41ff64bec47c6ceefa39 (patch)
tree32570d1cc6270b40b26238321a089ba060b39d4c /plugins/web-search
parentaee9e603b42192d787ceaa7be3e0a55986ce3f46 (diff)
downloadzsh-0fd11130a3541e33aded41ff64bec47c6ceefa39.tar.gz
zsh-0fd11130a3541e33aded41ff64bec47c6ceefa39.tar.bz2
zsh-0fd11130a3541e33aded41ff64bec47c6ceefa39.zip
web-search: add Wayback Archive (#8784)
Diffstat (limited to 'plugins/web-search')
-rw-r--r--plugins/web-search/README.md1
-rw-r--r--plugins/web-search/web-search.plugin.zsh2
2 files changed, 3 insertions, 0 deletions
diff --git a/plugins/web-search/README.md b/plugins/web-search/README.md
index 9c01f0724..81908fb94 100644
--- a/plugins/web-search/README.md
+++ b/plugins/web-search/README.md
@@ -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:
diff --git a/plugins/web-search/web-search.plugin.zsh b/plugins/web-search/web-search.plugin.zsh
index f975bad7a..326a30745 100644
--- a/plugins/web-search/web-search.plugin.zsh
+++ b/plugins/web-search/web-search.plugin.zsh
@@ -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
@@ -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'