Command line tool for searching the web. Opens search results in your system's default web browser.
TODO:
- add arguments for opening in alternate browsers
- add dotfile config for setting default search engine
- add more search engines :)
Download the script:
curl -o search https://raw.githubusercontent.com/jolleydesign/search-cli/main/search
Make it executable:
chmod +x search
Move to your PATH:
sudo mv search /usr/local/bin/
mkdir -p ~/bin
mv search ~/bin/
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc`
search --options "your search query"
or
search --options raw search query
| Argument | Description |
|---|---|
-h, --help |
Shows the help message |
-g, --google |
Searches using Google (default) |
-d, --duck |
Searches using DuckDuckGo |
-b, --bing |
searches using Bing |
I reccomend setting an alias in your shell to shorten the search keyword, if you use this tool often.