Crates.io | csearch |
lib.rs | csearch |
version | 1.1.2 |
source | src |
created_at | 2023-03-25 13:42:23.18946 |
updated_at | 2023-03-29 20:02:39.626882 |
description | Enter your query and it will be opened in browser |
homepage | |
repository | https://github.com/Nanoster1/csearch |
max_upload_size | |
id | 820262 |
size | 29,466 |
CLI Utility for the opening your browser from the terminal
csearch "Some query here" -b Default -s Google
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
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"