/localman

A mini script that helps you manage your local domains easier

Primary LanguageC

localman

A mini script that helps you manage your local domains easier. Not bored with editing hosts file anymore

Installation

Homebrew

brew tap snowflk/tap
brew install localman

Build from source

git clone https://github.com/snowflk/localman
cd localman
make

Then move it to /usr/bin or any directory listed in your $PATH

sudo cp localman /usr/bin

Usage

localman COMMAND [PARAM] 
Command Description
ls List all custom domains
add <domain> Add a domain pointing to localhost
rm <domain> Remove a domain
apply Apply changes (require root access)
revert Restore original hosts file (require root access)

License

MIT License

Copyright (c) 2019 Thien Phuc Tran