Arc Search Plugin for Oh My Zsh
January 29, 2025 ยท View on GitHub
A Zsh plugin that enables quick searches using Arc browser directly from your terminal. Features URL encoding for search terms.
Features
- Search web from terminal
- URL encoding for search terms
- Command completion
- Special character handling
Prerequisites
- Oh My Zsh
- Arc Browser
Installation
-
Clone this repository into your Oh My Zsh custom plugins directory:
git clone https://github.com/michaelsousajr/zsh-arc-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/arc-search -
Add the plugin to your
.zshrc:plugins=(... arc-search) -
Reload your shell:
source ~/.zshrc
Note: The name of this repo will differ from folder name in the zsh customs folder, if you decide to manully install you must change the folder name to "arc-search".
Usage
# Open Arc browser
arc
# Search in Arc
arc how to code
# Also search with case-sensitive commands
Arc how to code
ARC how to code
Testing
Run the test suite:
cd ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/arc-search/tests
./test_arc.zsh
Contributing
-
Fork the repository.
-
Create your feature branch:
git checkout -b feature/amazing-feature -
Commit your changes:
git commit -m 'Add amazing feature' -
Push to the branch:
git push origin feature/amazing-feature -
Open a Pull Request.