Skip to content

amogusussy/search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

search

Search engine in the terminal.

How to run?

curl -s https://raw.githubusercontent.com/amogusussy/search/main/search >> ~/.local/bin/search

echo "PATH=$PATH:~/.local/bin/" | tee -a ~/.bashrc # Make sure that ~/.local/bin is in $PATH

Then you can run it with this syntax:

$ search example [-i,-t,-v, -s]

Optimization

This uses Librex' API, which isn't very fast. You can host it on your local machine for better speeds with these commands:

git clone https://github.com/hnhx/librex/
cd librex
php -S localhost:8080

Or, refer to its wiki for use with Nginx.

Then, you can change the ST variable to the URL of your own instance. For example, with the above example of using localhost, you would change it to ST = "http://localhost:8080/"

In the future I might make this easier with config files.


If you've found any issues in my code, feel free to make an issue, or a pull request.

About

Search engine in the terminal.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages