README.md 745 Bytes
Newer Older
Griko Nibras's avatar
Griko Nibras committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# catimg

Plugin for displaying images on the terminal using the the `catimg.sh` script provided by [posva](https://github.com/posva/catimg)

## Requirements

- `convert` (ImageMagick)

## Enabling the plugin

1. Open your `.zshrc` file and add `catimg` in the plugins section:

   ```zsh
   plugins=(
       # all your enabled plugins
       catimg
   )
   ```

20
2. Restart the shell or restart your Terminal session:
Griko Nibras's avatar
Griko Nibras committed
21
22

   ```console
23
   $ exec zsh
Griko Nibras's avatar
Griko Nibras committed
24
25
26
27
28
29
30
31
32
33
34
35
   $
   ```

## Functions

| Function | Description                              |
| -------- | ---------------------------------------- |
| `catimg` | Displays the given image on the terminal |

## Usage examples

[![asciicast](https://asciinema.org/a/204702.png)](https://asciinema.org/a/204702)