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.
Download the archieved file (.bin). It can be run directly from terminal
For Installation of rerun see here. After installing rerun:
- Download ZIP of HFM.
- Copy folder to rerun module directory
rerun hfm:<command> [options]
To see the available commands run:
rerun hfm
or if you have rerun autocompletion installed type:
rerun hfm:<tab><tab>
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
- 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)