Go to file
William Melody bcf308ffd3 Bump version to 1.0.0 2015-03-18 18:45:00 -07:00
LICENSE Add license 2015-03-18 18:39:22 -07:00
Readme.md Add 'Why' section to Readme 2015-03-18 18:44:06 -07:00
hosts Bump version to 1.0.0 2015-03-18 18:45:00 -07:00

Readme.md

Hosts

A command line program with shortcuts for managing hosts file entries.

Installation

To get started, add the hosts script to your path.

Homebrew

To install with homebrew, use the following command:

brew install alphabetum/taps/hosts

Usage

Usage:
  hosts
  hosts add <ip> <hostname>
  hosts remove ( <ip> | <hostname> | <search string> ) [--force]
  hosts list [enabled | disabled | <search string>]
  hosts show ( <ip> | <hostname> | <search string> )
  hosts disable ( <ip> | <hostname> | <search string> )
  hosts enable ( <ip> | <hostname> | <search string> )
  hosts edit
  hosts file

For full usage, run:

hosts help

For help with a particular command, try:

hosts help <command name>

Why

Although it's easy to just edit the hosts file manually, it's nice to have a structured way to edit it and keep things a little organized.

Acknowledgements

Based on prior work by:

Original idea and interface (since changed) via:

https://github.com/macmade/host-manager