1.0.1 • Published 3 years ago

switch-hosts-bash v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Switch Hosts

A simple hosts file switcher using hosts files from https://github.com/StevenBlack/hosts.

Installation

$ git clone https://github.com/unforswearing/switch-hosts.git .
$ cd switch-hosts && source switchhosts

Or install with basher

$ basher install unforswearing/switch-hosts
$ include unforswearing/switch-hosts switchhosts

Usage

hosts [clear|list|allow|restore|schedule|switch|update] [default|loose]

Warning

As noted in "Usage" above, the function in switchhosts is called hosts which may collide with the host command at /usr/bin/host on Macos.

To Do

May eventually rewrite this in a more useful language (Python)