Web search from the terminal. Just opens your default browser.
Usage:
s <query> [flags]
Flags:
-b, --binary string binary to launch search uri
-l, --list-providers list supported providers
-p, --provider string set search provider (default "google")
-v, --verbose display url when opening
--version display version
go get -v github.com/zquestz/s
cd $GOPATH/src/github.com/zquestz/s
make
make install
Search for puppies on google.
s puppies
Search for a wifi router on amazon
s -p amazon wifi router
Search for rhinos on wikipedia
s -p wikipedia rhinos
We can do partial matching of provider names. This searches Facebook for hamsters.
s -p fa hamsters
Or toasters on amazon.
s -p am toasters
Autocompletion for providers is supported. For setting up autocompletion:
- Have
s
installed - Add the following lines to
~/.bash_profile
or~/.zshrc
if [ -f $GOPATH/src/github.com/zquestz/s/autocomplete/s-completion.bash ]; then
. $GOPATH/src/github.com/zquestz/s/autocomplete/s-completion.bash
fi
Now you are good to go.
s -p ba<TAB><TAB>
baidu bandcamp
Setup an alias in your .profile
for your favorite providers.
alias sa="s -p amazon"
alias sw="s -p wikipedia"
Use w3m to find cats instead of just your default browser.
s -b w3m cats
Search for conspiracy theories in incognito mode.
s -b "chromium --incognito" conspiracy theories
- 8tracks
- amazon
- arxiv
- atmospherejs
- baidu
- bandcamp
- bing
- codepen
- coursera
- crunchyroll
- digg
- dockerhub
- dribbble
- duckduckgo
- dumpert
- flickr
- flipkart
- foursquare
- gist
- github
- gmail
- go
- godoc
- hackernews
- ietf
- ifttt
- imdb
- imgur
- kickasstorrents
- libgen
- macports
- mdn
- msdn
- nhaccuatui
- npm
- npmsearch
- nvd
- packagist
- php
- python
- quora
- rubygems
- soundcloud
- spotify
- stackoverflow
- steam
- taobao
- thepiratebay
- twitchtv
- unity3d
- vimeo
- wikipedia
- wolframalpha
- yahoo
- yandex
- youtube
- Josh Ellithorpe (zquestz)
- Christian Petersen (fnky)
- Preet Bhinder (mbhinder)
- Robert-Jan Keizer (KeizerDev)
- Vitor Cortez (vekat)
- David Liu (tw4dl)
- Lex Broner (akb)
- Diego Jara (djap96)
- Luvsandondov Lkhamsuren (lkhamsurenl)
s is released under the MIT license.