Sitemap

Terminal Batch Web Search

Nov 28, 2025

--

We’ve all been there, Google doesn’t one shot your search query and so you have to add “hackernews”, “reddit” or “stackoverflow” to your query to find the relevant results.

Most of the time you know even prior to sending that search if it’ll be in this camp, so why not send multiple searches at once?

Get Ben Weller’s stories in your inbox

Join Medium for free to get updates from this writer.

In the spirit of the relevant XKCD and uzi I’ve created a batch search function you can use from the terminal, pull the trigger once and you’ve covered your bases.

Pre-reqs

  • Oh my ZSH
  • Default web browser

Implementation

plugins=( ... web-search)

function shotgun {
web_search google $1; web_search google site:news.ycombinator.com $1; web_search reddit $1; web_search stackoverflow $1;
}

Originally published at https://bweller.me on November 28, 2025.

--

--

Ben Weller
Ben Weller

Written by Ben Weller

0 followers

Whatever is natural is easily procured and only the vain and worthless hard to win. Water/Diamonds