From 8872349c169e6eddd88d76c91feaf43ace4fd4ca Mon Sep 17 00:00:00 2001 From: William Melody Date: Tue, 24 Nov 2015 16:15:45 -0800 Subject: [PATCH] Use fenced code blocks in Readme.md. --- Readme.md | 48 ++++++++++++++++++++++++++++++------------------ 1 file changed, 30 insertions(+), 18 deletions(-) diff --git a/Readme.md b/Readme.md index e4d229a..d0412ea 100644 --- a/Readme.md +++ b/Readme.md @@ -14,44 +14,56 @@ A command line program with shortcuts for managing hosts file entries. 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 To install with [bpkg](http://www.bpkg.io/): - bpkg install alphabetum/hosts +```bash +bpkg install alphabetum/hosts +``` ### Manual To install manually, simply add the `hosts` script to your `$PATH`. If you already have a `~/bin` directory, you can use the following command: - curl -L https://raw.github.com/alphabetum/hosts/master/hosts \ - -o ~/bin/hosts && chmod +x ~/bin/hosts +```bash +curl -L https://raw.github.com/alphabetum/hosts/master/hosts \ + -o ~/bin/hosts && chmod +x ~/bin/hosts +``` ## Usage - Usage: - hosts - hosts add [comment] - hosts remove ( | | ) [--force] - hosts list [enabled | disabled | ] - hosts show ( | | ) - hosts disable ( | | ) - hosts disabled - hosts enable ( | | ) - hosts enabled - hosts edit - hosts file +```text +Usage: + hosts + hosts add [comment] + hosts remove ( | | ) [--force] + hosts list [enabled | disabled | ] + hosts show ( | | ) + hosts disable ( | | ) + hosts disabled + hosts enable ( | | ) + hosts enabled + hosts edit + hosts file +``` For full usage, run: - hosts help +```text +hosts help +``` For help with a particular command, try: - hosts help +```text +hosts help +``` ## Commands