{"repo":"xwmx/hosts","free":true,"listed":false,"github":"https://github.com/xwmx/hosts","clone":"git clone https://github.com/xwmx/hosts.git","description":"A command line hosts file editor in one portable script.","language":"Shell","stars":172,"topics":["hosts","shell","command-line","unix","linux","macos","hostname","bash","networking","cli"],"license":"MIT","category":"cli-tools","readme_excerpt":"/ / / / / \\/ \\/ / / / / / / / / / ( ) / ( ) / / / /\\ / /\\ / / Hosts hosts is a command line program for managing hosts file) entries. hosts works with existing hosts files and entries, making it easier to add, remove, comment, and search hosts file entries using simple, memorable commands. hosts is designed to be lightweight, easy to use, and contained in a single, portable script that can be curl ed into any environment. Installation Homebrew To install with Homebrew: npm To install with npm: bpkg To install with bpkg: Make To install with Make), clone this repository, navigate to the clone's root directory, and run: Manual To install as an administrator, copy and paste one of the following multi-line commands: User-only Installation To install with just user permissions, simply add the hosts script to your $PATH . If you already have a /bin directory, for example, you can use one of the following commands: Installing with just user permissions doesn't install the completions, but hosts works without them. If you have sudo access and want to install the completion scripts, run the following command: Arch Linux A package for Arch users is also available in the AUR. Tab Completion Bash and Zsh tab completion is enabled when hosts is installed using Homebrew, npm, bpkg, or Make. If you are installing hosts manually, completion can be enabled with a few commands. Usage Listing Entries hosts with no arguments lists the entries in the system's hosts file: hosts called with a strin","default_branch":null,"files":null,"tree":[],"storefront":"/r/xwmx","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/xwmx/hosts/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}