Skip to content
🔍 🔮 Search from the command line
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
Makefile
README.md
s.go
s.vim

README.md

s

Maps, videos, images, and YouTube from the command line

Install

Put the program bin/s somewhere in your $PATH, e.g.

$ curl -s https://raw.githubusercontent.com/yangmillstheory/s/master/bin/s -o /usr/local/bin/s
$ chmod +x /usr/local/bin/s

Usage

👌 ~/c/g [cc7a0af] (master)
(i) s -help
Usage of s:
  -d    Enable debug logging.
  -i    Search Google Images.
  -m    Search Google Maps.
  -v    Search Google Videos.
  -w    Search Google. (default true)
  -yt
        Search YouTube.

Shell

# images, videos, youtube, web
$ s -i -v -y '"Black Mirror Season 4" review'

# maps, no web search
$ s -m -w=false pizza

Vim

Put this in your .vimrc.

Now you can search from vim in visual, normal, and operator-pending modes :).

Development

  1. Edit s.go.
  2. make build.
  3. Play with bin/s.

FAQ

What about googler?

It's nice, but did too much for what I wanted.

Limitations

The program is Darwin-only. This can be fixed by using pkg/browser.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.