summaryrefslogtreecommitdiff
path: root/plugins/catimg/catimg.plugin.zsh
diff options
context:
space:
mode:
authorAndrew vonderLuft <avonderluft@avlux.net>2014-03-14 13:17:43 -0700
committerAndrew vonderLuft <avonderluft@avlux.net>2014-03-14 13:17:43 -0700
commitbf4d4db72b065bff57d75355f49192175364b8a5 (patch)
tree4ffa98f99c0919fda9418693d049a4bf7bf290f2 /plugins/catimg/catimg.plugin.zsh
parent8f7971349b653706071bc41e2fdb953bb6f22678 (diff)
parentee21fe94473404b58cbaea5b2c279f7a07c34ce1 (diff)
downloadzsh-bf4d4db72b065bff57d75355f49192175364b8a5.tar.gz
zsh-bf4d4db72b065bff57d75355f49192175364b8a5.tar.bz2
zsh-bf4d4db72b065bff57d75355f49192175364b8a5.zip
Merge branch 'master' of git://github.com/robbyrussell/oh-my-zsh into dev
Diffstat (limited to 'plugins/catimg/catimg.plugin.zsh')
-rw-r--r--plugins/catimg/catimg.plugin.zsh17
1 files changed, 17 insertions, 0 deletions
diff --git a/plugins/catimg/catimg.plugin.zsh b/plugins/catimg/catimg.plugin.zsh
new file mode 100644
index 000000000..cb92f5986
--- /dev/null
+++ b/plugins/catimg/catimg.plugin.zsh
@@ -0,0 +1,17 @@
+################################################################################
+# 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 #
+################################################################################
+
+
+function catimg() {
+ if [[ -x `which convert` ]]; then
+ zsh $ZSH/plugins/catimg/catimg.sh $@
+ else
+ echo "catimg need convert (ImageMagick) to work)"
+ fi
+}