mirror of
https://github.com/octoleo/hosts.git
synced 2024-11-29 00:06:38 +00:00
Use fenced code blocks in Readme.md.
This commit is contained in:
parent
21069fb68d
commit
8872349c16
48
Readme.md
48
Readme.md
@ -14,44 +14,56 @@ A command line program with shortcuts for managing hosts file entries.
|
|||||||
|
|
||||||
To install with [Homebrew](http://brew.sh/):
|
To install with [Homebrew](http://brew.sh/):
|
||||||
|
|
||||||
brew tap alphabetum/taps && brew install alphabetum/taps/hosts
|
```bash
|
||||||
|
brew tap alphabetum/taps && brew install alphabetum/taps/hosts
|
||||||
|
```
|
||||||
|
|
||||||
### bpkg
|
### bpkg
|
||||||
|
|
||||||
To install with [bpkg](http://www.bpkg.io/):
|
To install with [bpkg](http://www.bpkg.io/):
|
||||||
|
|
||||||
bpkg install alphabetum/hosts
|
```bash
|
||||||
|
bpkg install alphabetum/hosts
|
||||||
|
```
|
||||||
|
|
||||||
### Manual
|
### Manual
|
||||||
|
|
||||||
To install manually, simply add the `hosts` script to your `$PATH`. If
|
To install manually, simply add the `hosts` script to your `$PATH`. If
|
||||||
you already have a `~/bin` directory, you can use the following command:
|
you already have a `~/bin` directory, you can use the following command:
|
||||||
|
|
||||||
curl -L https://raw.github.com/alphabetum/hosts/master/hosts \
|
```bash
|
||||||
-o ~/bin/hosts && chmod +x ~/bin/hosts
|
curl -L https://raw.github.com/alphabetum/hosts/master/hosts \
|
||||||
|
-o ~/bin/hosts && chmod +x ~/bin/hosts
|
||||||
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Usage:
|
```text
|
||||||
hosts
|
Usage:
|
||||||
hosts add <ip> <hostname> [comment]
|
hosts
|
||||||
hosts remove ( <ip> | <hostname> | <search string> ) [--force]
|
hosts add <ip> <hostname> [comment]
|
||||||
hosts list [enabled | disabled | <search string>]
|
hosts remove ( <ip> | <hostname> | <search string> ) [--force]
|
||||||
hosts show ( <ip> | <hostname> | <search string> )
|
hosts list [enabled | disabled | <search string>]
|
||||||
hosts disable ( <ip> | <hostname> | <search string> )
|
hosts show ( <ip> | <hostname> | <search string> )
|
||||||
hosts disabled
|
hosts disable ( <ip> | <hostname> | <search string> )
|
||||||
hosts enable ( <ip> | <hostname> | <search string> )
|
hosts disabled
|
||||||
hosts enabled
|
hosts enable ( <ip> | <hostname> | <search string> )
|
||||||
hosts edit
|
hosts enabled
|
||||||
hosts file
|
hosts edit
|
||||||
|
hosts file
|
||||||
|
```
|
||||||
|
|
||||||
For full usage, run:
|
For full usage, run:
|
||||||
|
|
||||||
hosts help
|
```text
|
||||||
|
hosts help
|
||||||
|
```
|
||||||
|
|
||||||
For help with a particular command, try:
|
For help with a particular command, try:
|
||||||
|
|
||||||
hosts help <command name>
|
```text
|
||||||
|
hosts help <command name>
|
||||||
|
```
|
||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user