From 0185d9920b7d6c380277a4a15c9e4818df41700a Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Mon, 9 Dec 2013 08:54:38 +0100 Subject: catimg plugin allow to print an image to the stdout using convert --- plugins/catimg/catimg.plugin.zsh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 plugins/catimg/catimg.plugin.zsh (limited to 'plugins/catimg/catimg.plugin.zsh') diff --git a/plugins/catimg/catimg.plugin.zsh b/plugins/catimg/catimg.plugin.zsh new file mode 100644 index 000000000..01e81eca7 --- /dev/null +++ b/plugins/catimg/catimg.plugin.zsh @@ -0,0 +1,16 @@ +################################################################################ +# catimg script by Eduardo San Martin Morote aka Posva # +# http://posva.net # +# # +# Ouput the content of an image to the stdout using the 256 colors of the # +# terminal. # +# Github: https://github.com/posva/catimg # +################################################################################ + +if [[ -x `which convert` ]]; then + function catimg() { + source $(dirname $0)/catimg.sh $@ + } +else + echo "catimg need convert (ImageMagick) to work)" +fi -- cgit v1.2.3-70-g09d2