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 ## Installation
### Build from source ### Build from source
```sh
sudo apt install imagemagick || yum install ImageMagick brew install imagemagick || yum install ImageMagick || sudo apt install imagemagick
git clone https://github.com/stefanhaustein/TerminalImageViewer.git git clone https://github.com/stefanhaustein/TerminalImageViewer.git
cd TerminalImageViewer/src/main/cpp cd TerminalImageViewer/src/main/cpp
make make
sudo make install sudo make install
```
### Homebrew ### Homebrew
Option 1: Option 1:
``` ```sh
brew install tiv brew install tiv
``` ```
Option 2 (deprecated, for macOS Mojave and below): Option 2 (deprecated, for macOS Mojave and below):
``` ```sh
brew tap stefanhaustein/TerminalImageViewer https://github.com/stefanhaustein/TerminalImageViewer brew tap stefanhaustein/TerminalImageViewer https://github.com/stefanhaustein/TerminalImageViewer
brew install terminalimageviewer brew install terminalimageviewer
``` ```