https://github.com/gniquyij/wallhog
Web search via cmd
https://github.com/gniquyij/wallhog
cmd gfw macos search web
Last synced: about 2 months ago
JSON representation
Web search via cmd
- Host: GitHub
- URL: https://github.com/gniquyij/wallhog
- Owner: gniquyij
- License: gpl-3.0
- Created: 2020-05-11T01:44:12.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-06T13:09:40.000Z (almost 6 years ago)
- Last Synced: 2023-07-10T12:24:29.228Z (almost 3 years ago)
- Topics: cmd, gfw, macos, search, web
- Language: Go
- Homepage: https://gniquyij.github.io/wallhog/
- Size: 12 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wallhog

Web search from cmd.
`$ wh ` will:
- open your default browser
- search via the 'general' search engine(s) - search engine(s) tagged as 'general' in `./tunnels/tunnels.json`
If specific search engine(s) required, you could `$ wh -t `
- e.g. `$ wh -t book ` will search via the search engine(s) tagged as 'book' in `./tunnels/tunnels.json`
- if multiple tags, you could `$ wh -t " ... " `. wallhog would search with the engines with all the tags.
## Setup
```
$ go get github.com/vjyq/wallhog
$ cd $(go env GOPATH)/src/github.com/vjyq/wallhog/bin
$ bash shortcut.sh
```
Then just restart your terminal.
## Customize wallhog
By default wallhog loads the search engines in `./tunnels/tunnels.json`, you could customize it with your search preference.
For an update, you need to do 2 things:
- update `./tunnels/tunnels.json`. Assume you want to add 'Google' with a tag 'general', open `./tunnels/tunnels.json` and include the following lines:
```
{
"name": "Google",
"url": "https://www.google.com/search?q=",
"tags": ["general"]
},
```
- then rebuild the src code:
```
$ cd $(go env GOPATH)/src/github.com/vjyq/wallhog
$ go install
```
Highly recommend you share your search engine(s) through a pull request. PR name please follow:
- [new engine] \
e.g. '[new engine] Google'
You could also submit an issue if you require my help. Issue name please refer to PR name.
## Author
yuqing.ji@outlook.com