Skip to content

Commit 3ffd9c2

Browse files
committed
Add installation instructions using Basher
1 parent 0e25412 commit 3ffd9c2

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,24 @@ Table of contents
4747
Installation
4848
============
4949

50-
Linux
50+
Linux (manual installation)
5151
```bash
5252
$ wget https://raw.githubusercontent.com/ekalinin/github-markdown-toc/master/gh-md-toc
5353
$ chmod a+x gh-md-toc
5454
```
5555

56-
OSX
56+
macOS (manual installation)
5757
```bash
5858
$ curl https://raw.githubusercontent.com/ekalinin/github-markdown-toc/master/gh-md-toc -o gh-md-toc
5959
$ chmod a+x gh-md-toc
6060
```
6161

62+
Linux or macOS (using [Basher](https://github.com/basherpm/basher))
63+
```bash
64+
$ basher install ekalinin/github-markdown-toc
65+
# `gh-md-toc` will automatically be available in the PATH
66+
```
67+
6268
Usage
6369
=====
6470

@@ -153,7 +159,7 @@ Table of Contents
153159
That's all! Now all you need — is copy/paste result from console into original
154160
README.md.
155161
156-
If you do not want to copy from console you can add `> YOURFILENAME.md` at the end of the command like `./gh-md-toc https://github.com/ekalinin/envirius/blob/master/README.md > table-of-contents.md` and this will store the table of contents to a file named table-of-contents.md in your current folder.
162+
If you do not want to copy from console you can add `> YOURFILENAME.md` at the end of the command like `./gh-md-toc https://github.com/ekalinin/envirius/blob/master/README.md > table-of-contents.md` and this will store the table of contents to a file named table-of-contents.md in your current folder.
157163
158164
And here is a result:
159165

0 commit comments

Comments
 (0)