Switch hosts by Using Command Line
$ git clone [email protected]:yleo77/hostie.git
Put your custom hosts file in this dir: _REPO_DIR_/profiles
, and remeber the filename. (Of course, ~/.config/hostie/
also works.)
Before you use it , make sure it is executable.
# azure is your created host file name in `_REPO_DIR_/profiles`
$ sudo hostie azure
# reset your hosts file to the original
$ sudo hostie reset
$ hostie show
$ hostie list
$ hostie info [profile]
Maybe you could alias a command like this:
alias h="sudo _REPO_DIR_/hostie".