Skip to content

Commit

Permalink
Add installation to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
noborus committed Feb 28, 2024
1 parent 63c698e commit a58c61f
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# mdviewer

[![PkgGoDev](https://pkg.go.dev/badge/github.com/noborus/mdviewer?lightbox=false)](https://pkg.go.dev/github.com/noborus/mdviewer)
[![Latest Release](https://img.shields.io/github/v/release/noborus/mdviewer.svg?lightbox=false)](https://github.com/noborus/mdviewer/releases)

This is a sample using the [ov(oviewer)](https://github.com/noborus/ov) package.

![docs/mdviewer.gif](docs/mdviewer.gif)
Expand All @@ -15,4 +18,43 @@ Rendered and displayed by [glamour](https://github.com/charmbracelet/glamour).
* Press the `]` key to see the original file.
* Press the `[` key to return.

See the [ov](https://github.com/noborus/ov) for other operations.
See the [ov](https://github.com/noborus/ov) for other operations.

## Installation

### go install

```sh
go install github.com/noborus/mdviewer@latest
```

### Binary

[Releases](https://github.com/noborus/mdviewer/releases/latest)

### Homebrew

```sh
brew install noborus/tap/mdviewer
```

### Arch Linux

[https://aur.archlinux.org/packages/mdviewer-git](https://aur.archlinux.org/packages/mdviewer-git)

### deb

You can download the package from [releases](https://github.com/noborus/mdviewer/releases).

```console
curl -L -O https://github.com/noborus/mdviewer/releases/download/vx.x.x/mdviewer_x.x.x-1_amd64.deb
sudo apt install ./mdviewer_x.x.x_amd64.deb
```

### rpm

You can download the package from [releases](https://github.com/noborus/mdviewer/releases).

```console
sudo rpm -ivh https://github.com/noborus/mdviewer/releases/download/vx.x.x/mdviewer_x.x.x-1_amd64.rpm
```

0 comments on commit a58c61f

Please sign in to comment.