Skip to content

yleo77/hostie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hostie

Switch hosts by Using Command Line

Installation

$ git clone [email protected]:yleo77/hostie.git

Quick Start

Setting

Put your custom hosts file in this dir: _REPO_DIR_/profiles, and remeber the filename. (Of course, ~/.config/hostie/ also works.)

Usage

Before you use it , make sure it is executable.

Add your custom host file to /etc/hosts.

# azure is your created host file name in `_REPO_DIR_/profiles`
$ sudo hostie azure 

Reset your hosts file.

# reset your hosts file to the original
$ sudo hostie reset  

Show your current profile.

$ hostie show  

List your hostie profiles.

$ hostie list          

Display infomation about profile

$ hostie info [profile]

Maybe you could alias a command like this:

alias h="sudo _REPO_DIR_/hostie".

TODO

About

Switch hosts by Using Command Line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages