Update README.md

Add Homebrew option for imagemagick and add syntax highlighting
This commit is contained in:
Aaron Liu 2022-07-30 10:30:35 -04:00 committed by GitHub
parent 701237fc5e
commit 6a7354b8fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,24 +25,24 @@ See the difference by disabling this optimization using the `-0` option. Or just
## Installation
### Build from source
sudo apt install imagemagick || yum install ImageMagick
git clone https://github.com/stefanhaustein/TerminalImageViewer.git
cd TerminalImageViewer/src/main/cpp
make
sudo make install
```sh
brew install imagemagick || yum install ImageMagick || sudo apt install imagemagick
git clone https://github.com/stefanhaustein/TerminalImageViewer.git
cd TerminalImageViewer/src/main/cpp
make
sudo make install
```
### Homebrew
Option 1:
```
```sh
brew install tiv
```
Option 2 (deprecated, for macOS Mojave and below):
```
```sh
brew tap stefanhaustein/TerminalImageViewer https://github.com/stefanhaustein/TerminalImageViewer
brew install terminalimageviewer
```