diff options
author | Robby Russell <robby@planetargon.com> | 2014-03-08 08:42:01 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2014-03-08 08:42:01 -0800 |
commit | a811ab0ba7f6915cce376ec6b2a7180ee1d04d5f (patch) | |
tree | 4ea2bdee675d83308d9a7571f9fd2152803df9e6 /plugins/catimg/catimg.plugin.zsh | |
parent | e744bf22ca31dc165115a1409fee121f98e62871 (diff) | |
parent | 8309b0a19baa351d643194f897d59de7b3d3b3dd (diff) | |
download | zsh-a811ab0ba7f6915cce376ec6b2a7180ee1d04d5f.tar.gz zsh-a811ab0ba7f6915cce376ec6b2a7180ee1d04d5f.tar.bz2 zsh-a811ab0ba7f6915cce376ec6b2a7180ee1d04d5f.zip |
Merge pull request #2331 from posva/catimg
Catimg plugin
Diffstat (limited to 'plugins/catimg/catimg.plugin.zsh')
-rw-r--r-- | plugins/catimg/catimg.plugin.zsh | 17 |
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 +} |