3 stable releases

1.1.2 Mar 29, 2023
1.1.1 Mar 28, 2023
1.0.0 Mar 25, 2023

#2116 in Command line utilities

MIT license

15KB
313 lines

csearch

CLI Utility for the opening your browser from the terminal

Crates.io

Examples

csearch "Some query here" -b Default -s Google

alt

Choose Browser

It works on webbrowser library
On Linux, you can set the environment variable BROWSER

For example in Bash:

export BROWSER="/usr/bin/links"

Or in PowerShell

$env:BROWSER = "/usr/bin/links"

It's also working with browsers like Links

Completions

You can generate common completions for your shell

For example in PowerShell

New-Item -Path ~/.cargo/scripts/ -Type Directory
csearch --completions Bash >> ~/.cargo/scripts/csearch.ps1
Add-Content -Path $PROFILE -Value "Invoke-Expression -Command ~/.cargo/scripts/*.ps1"

Dependencies

~3–12MB
~143K SLoC