A mini script that helps you manage your local domains easier. Not bored with editing hosts file anymore
brew tap snowflk/tap
brew install localman
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
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) |
MIT License
Copyright (c) 2019 Thien Phuc Tran