#cli

csearch_app

library with core logic for csearch

1 stable release

1.0.0 Mar 28, 2023

#3504 in #cli


Used in csearch

MIT license

4KB
60 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

~2–12MB
~124K SLoC