summaryrefslogtreecommitdiff
path: root/plugins/catimg/catimg.plugin.zsh
diff options
context:
space:
mode:
authorEduardo San Martin Morote <posva13@gmail.com>2013-12-09 08:54:38 +0100
committerEduardo San Martin Morote <posva13@gmail.com>2013-12-09 08:54:38 +0100
commit0185d9920b7d6c380277a4a15c9e4818df41700a (patch)
treebc2e8b30c2493cb849c04bba02b738380f058286 /plugins/catimg/catimg.plugin.zsh
parent357ab4912b98e5ffc14dd62a53b988053d7f9a6e (diff)
downloadzsh-0185d9920b7d6c380277a4a15c9e4818df41700a.tar.gz
zsh-0185d9920b7d6c380277a4a15c9e4818df41700a.tar.bz2
zsh-0185d9920b7d6c380277a4a15c9e4818df41700a.zip
catimg plugin
allow to print an image to the stdout using convert
Diffstat (limited to 'plugins/catimg/catimg.plugin.zsh')
-rw-r--r--plugins/catimg/catimg.plugin.zsh16
1 files changed, 16 insertions, 0 deletions
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