1
0
mirror of https://github.com/octoleo/hosts.git synced 2024-06-12 11:12:23 +00:00

Use fenced code blocks in Readme.md.

This commit is contained in:
William Melody 2015-11-24 16:15:45 -08:00
parent 21069fb68d
commit 8872349c16

View File

@ -14,24 +14,31 @@ 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/):
```bash
brew tap alphabetum/taps && brew install alphabetum/taps/hosts 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/):
```bash
bpkg install alphabetum/hosts 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:
```bash
curl -L https://raw.github.com/alphabetum/hosts/master/hosts \ curl -L https://raw.github.com/alphabetum/hosts/master/hosts \
-o ~/bin/hosts && chmod +x ~/bin/hosts -o ~/bin/hosts && chmod +x ~/bin/hosts
```
## Usage ## Usage
```text
Usage: Usage:
hosts hosts
hosts add <ip> <hostname> [comment] hosts add <ip> <hostname> [comment]
@ -44,14 +51,19 @@ you already have a `~/bin` directory, you can use the following command:
hosts enabled hosts enabled
hosts edit hosts edit
hosts file hosts file
```
For full usage, run: For full usage, run:
```text
hosts help hosts help
```
For help with a particular command, try: For help with a particular command, try:
```text
hosts help <command name> hosts help <command name>
```
## Commands ## Commands