Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1.38 KB

README.md

File metadata and controls

55 lines (38 loc) · 1.38 KB

hfm (rerun)

This is a little terminal host file manager. It is a rerun module, but you can download an archieved (.bin) version which is directly runnable.

Installation

Without Rerun

Download the archieved file (.bin). It can be run directly from terminal

With Rerun

For Installation of rerun see here. After installing rerun:

  1. Download ZIP of HFM.
  2. Copy folder to rerun module directory

Usage

rerun hfm:<command> [options]

To see the available commands run:

rerun hfm

or if you have rerun autocompletion installed type:

rerun hfm:<tab><tab>

Quickstart

Add "example.de" host with default IP "127.0.0.1" to "development" host file:

# Creates a copy of /etc/host > renames it to
# development and adds host line
rerun hfm:add example.de

# Replace /etc/hosts with newly created
# development host file
# WARNING: /etc/hosts will be overwritten
rerun hfm:activate -e development

To get original host file back run:

rerun hfm:activate

Features

  • Add/Remove host in host file
  • Manage multiple host files (production, development, default)
  • Backup of original /etc/host file to HFM_DIR/default (before initial use of hfm module)