Search the web from your terminal
A Fish shell function that lets you search the web using multiple search engines, ChatGPT, and direct URLs with browser integration. Features intelligent history and interactive fuzzy finding with fzf.
sea !ch "explain quantum computing"- 🔍 Multiple search engines via "!bangs" (Google, Wikipedia, YouTube, GitHub, etc.)
- 🤖 ChatGPT integration (!ch bang)
- 📜 Search history persistence
- 🔎 Interactive fuzzy search with fzf
- 🗺️ Direct URL opening
- 🚀 Brave browser integration (default)
- 🗑️ History management (Ctrl-D to delete entries)
USAGE
Use sea !ch docker to search ChatGPT
Search with a bang
sea !gfish shell scripting
sea !yt epic cat videos
sea !ghfisher
sea example.com
sea https://fishshell.com
Interactive menu (no arguments) : sea
Press Ctrl-D on a history item in the fzf menu to delete it. Available Bangs:
!g - Google
!w - Wikipedia
!yt - YouTube
!gh - GitHub
!ddg - DuckDuckGo
!def - Define (DDG)
!map - Google Maps
!lucky - Brave (I'm Feeling Lucky)
Configuration The search history is stored in ~/.config/fish/sea_history.txt. Bangs and the default search engine are configured within the sea.fish function itself.
-
Ensure you have:
- Fish Shell v3.3.1+
- fzf
- Brave browser (or modify code for your preferred browser)
-
for easy install use fisher[fish shell package manager]:
fisher install samunderSingh12/sea-fish-plugin
-
first of all install fisher[duh]:
curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher

