Viewing images right inside iTerm 2.9
Call me crazy, but viewing images from a CLI app can be pretty cool.
Yes, we have the ancient art of ASCII (and that will not go away)
but why not use a real image in some cases?
Now the nice folks behind iTerm 2 have made that possible in versions
of iTerm post-2.9. I do not claim this has not been done before, but
I am unaware of this capability in Terminal. Anyway, on to the goods:
Steps for ZSH Users
[ iTerm & ZSH, great together ]
mkdir ~/Projects/iterm/imgcat && cd !$
wget https://raw.githubusercontent.com/gnachman/iTerm2/master/tests/imgcat
wget http://p1cdn01.thewrap.com/images/2014/05/Halt-and-Catch-Fire-8.jpg -O hacf.jpg
- Change $PATH to include ~/Projects/iterm/imgcat
- Reload your shell
imgcat hacf.jpg