This tool implements the iTerm2 image support as described here. It supports both local files as well as images loaded via http(s).
Be sure to install the latest version of iTerm2.
To install imgcat
, you should have a recent version of Go (1.21+ at the time of writing this), and type:
go install github.com/olivere/iterm2-imagetools/cmd/imgcat@latest
To install imgls
, type:
go install github.com/olivere/iterm2-imagetools/cmd/imgls@latest
The binaries then get installed into the $GOPATH/bin
directory (or $HOME/go/bin
if GOPATH
is not set; see go help install
), which you can add to your $PATH
.
MIT-LICENSE. See LICENSE or the LICENSE file provided in the repository for details.