- π QuickSearch
Lightning-fast CLI search shortcuts for developers. Search 30+ sites directly from your terminal with simple, memorable commands.
- π Instant Search - Type
search-so "your query"and your browser opens with results - π Colorful Output - Beautiful, readable terminal feedback
- π§ Developer-Focused - Stack Overflow, GitHub, documentation sites
- π§ Linux-Friendly - Search all major Linux wikis at once with one command
- π¦ Package Search - npm, PyPI, NixPkgs, Arch packages, and more
- π€ AI Integration - Quick access to ChatGPT, Claude, Perplexity
- β‘ Zero Dependencies - Pure bash, works everywhere
- π― 30+ Sites - One tool for all your search needs
# Clone the repository
git clone https://github.com/Nachmen-Kurtz/quicksearch.git
cd quicksearch
# Run the install script
chmod +x install.sh
./install.sh- Download the script:
mkdir -p ~/.local/bin
cd ~/.local/bin
curl -O https://raw.githubusercontent.com/Nachmen-Kurtz/quicksearch/main/quicksearch.sh
chmod +x search-tool.sh- Create symbolic links:
cd ~/.local/bin
# Create all command aliases
for cmd in so sf su se gh gist mdn godocs rustdocs pydocs aws man docs \
npm pypi nixpkgs archpkg fedorapkg archwiki gentoowiki debianwiki \
nixwiki susewiki voiddocs voidwiki fedoradocs linuxwiki yt reddit \
wiki chatgpt perplexity claude ddg; do
ln -sf search-tool.sh search-$cmd
done- Add to PATH (if
~/.local/binis not already in your PATH):
# For bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
# For zsh
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
# For fish
fish_add_path ~/.local/bin- Verify installation:
search-so "test query"Basic syntax:
search-<site> "your search query"The command will automatically:
- URL-encode your search query
- Open your default browser
- Navigate to the search results
- Always quote your search queries
- Queries are automatically URL-encoded
- Works with any default browser
- Use
search-linuxwikito search ALL Linux wikis at once
| Command | Site | Description |
|---|---|---|
search-so |
Stack Overflow | Programming Q&A |
search-sf |
Server Fault | System administration Q&A |
search-su |
Super User | General computing Q&A |
search-se |
Stack Exchange | All Stack Exchange sites |
search-gh |
GitHub | Code repositories |
search-gist |
GitHub Gist | Code snippets |
| Command | Site | Description |
|---|---|---|
search-mdn |
MDN Web Docs | Web development documentation |
search-godocs |
Go Docs | Go language documentation |
search-rustdocs |
Rust Docs | Rust language documentation |
search-pydocs |
Python Docs | Python documentation |
search-aws |
AWS Docs | Amazon Web Services documentation |
search-man |
man7.org | Linux man pages |
search-docs |
DevDocs | Multiple documentation sources |
| Command | Site | Description |
|---|---|---|
search-npm |
npm | Node.js packages |
search-pypi |
PyPI | Python packages |
search-nixpkgs |
NixPkgs | Nix packages |
search-archpkg |
Arch Packages | Arch Linux packages |
search-fedorapkg |
Fedora Packages | Fedora packages |
| Command | Site | Description |
|---|---|---|
search-archwiki |
Arch Wiki | Arch Linux documentation |
search-gentoowiki |
Gentoo Wiki | Gentoo documentation |
search-debianwiki |
Debian Wiki | Debian documentation |
search-nixwiki |
NixOS Wiki | NixOS documentation |
search-susewiki |
openSUSE Wiki | openSUSE documentation |
search-voiddocs |
Void Docs | Void Linux documentation |
search-voidwiki |
Void Wiki | Void Linux wiki |
search-fedoradocs |
Fedora Docs | Fedora documentation |
search-linuxwiki |
All Linux Wikis | Search ALL wikis at once! |
| Command | Site | Description |
|---|---|---|
search-yt |
YouTube | Video search |
search-reddit |
Community discussions | |
search-wiki |
Wikipedia | Encyclopedia |
| Command | Site | Description |
|---|---|---|
search-chatgpt |
ChatGPT | OpenAI assistant |
search-perplexity |
Perplexity | AI-powered search |
search-claude |
Claude | Anthropic assistant |
search-ddg |
DuckDuckGo | Privacy-focused search |
# Search Stack Overflow
search-so "how to reverse a string in python"
# Search GitHub repositories
search-gh "react hooks examples"
# Find code snippets
search-gist "bash script parse json"# Python documentation
search-pydocs "asyncio tutorial"
# Go documentation
search-godocs "http server"
# MDN for web development
search-mdn "css flexbox"
# Man pages
search-man "grep"# Search a specific wiki
search-archwiki "install nvidia drivers"
# Search ALL Linux wikis at once (recommended!)
search-linuxwiki "systemd service configuration"
# Gentoo-specific
search-gentoowiki "kernel configuration"
# Void Linux
search-voiddocs "xbps package manager"# Find npm packages
search-npm "express middleware"
# Python packages
search-pypi "requests library"
# NixOS packages
search-nixpkgs "firefox"
# Arch packages
search-archpkg "docker"# YouTube tutorials
search-yt "rust programming tutorial"
# Reddit discussions
search-reddit "best mechanical keyboard 2024"
# Wikipedia
search-wiki "quantum computing"
# DuckDuckGo
search-ddg "privacy tools"# Ask ChatGPT
search-chatgpt "explain recursion"
# Use Perplexity for research
search-perplexity "latest developments in AI"
# Claude
search-claude "help me write a bash script"The script is located at ~/.local/bin/quicksearch.sh. You can edit it to:
- Add new search sites
- Modify existing URLs
- Change color schemes
- Add custom behavior
- Edit
~/.local/bin/quicksearch.sh - Add a new case in the switch statement:
search-yoursite)
URL="https://yoursite.com/search?q=${QUERY}"
SITE_NAME="${BLUE}Your Site${RESET}"
;;- Create a symbolic link:
cd ~/.local/bin
ln -s quicksearch.sh search-yoursiteColors are defined at the top of the script:
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
MAGENTA='\033[0;35m'
CYAN='\033[0;36m'
BOLD='\033[1m'
RESET='\033[0m'Problem: bash: search-so: command not found
Solutions:
-
Check if
~/.local/binis in your PATH:echo $PATH | grep "$HOME/.local/bin"
-
If not, add it to your shell config:
# Bash echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc source ~/.bashrc # Zsh echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc source ~/.zshrc
-
Verify the script exists:
ls -la ~/.local/bin/quicksearch.sh
Problem: Script runs but browser doesn't open
Solutions:
-
Check if you have a default browser set
-
Try setting
BROWSERenvironment variable:export BROWSER=firefox # or chrome, chromium, etc.
-
Manually test browser opening:
xdg-open "https://google.com" # Linux open "https://google.com" # macOS
Problem: Permission denied when running script
Solution:
chmod +x ~/.local/bin/quicksearch.shProblem: Links point to wrong location
Solution:
cd ~/.local/bin
# Remove broken links
rm search-*
# Recreate with absolute path
for cmd in so sf su se gh gist mdn godocs rustdocs pydocs aws man docs \
npm pypi nixpkgs archpkg fedorapkg archwiki gentoowiki debianwiki \
nixwiki susewiki voiddocs voidwiki fedoradocs linuxwiki yt reddit \
wiki chatgpt perplexity claude ddg; do
ln -sf "$(pwd)/quicksearch.sh" "search-$cmd"
doneContributions are welcome! Here's how you can help:
- Fork the repository
- Create a feature branch:
git checkout -b feature/new-site - Make your changes
- Test thoroughly
- Commit your changes:
git commit -am 'Add search-newsite command' - Push to the branch:
git push origin feature/new-site - Submit a pull request
When contributing new sites, please:
- Follow the existing code style
- Add appropriate colors for the site
- Update the README with the new command
- Test on both Linux and macOS if possible
Found a bug? Please open an issue with:
- Your operating system (Linux distribution or macOS version)
- Shell type and version (
echo $SHELL,$SHELL --version) - Error message (if any)
- Steps to reproduce
This project is licensed under the GNU General Public License v3.0 or later - see the LICENSE file for details.
- Inspired by the need for faster developer workflows
- Thanks to all the open-source documentation sites
- Built with β€οΈ for the developer community
- 30+ supported sites
- 0 dependencies
- Works on Linux and macOS
- Written in pure Bash
Made with β€οΈ by developers, for developers. Happy searching! π