catimg.plugin.zsh 816 B

1234567891011121314151617
  1. ################################################################################
  2. # catimg script by Eduardo San Martin Morote aka Posva #
  3. # https://posva.net #
  4. # #
  5. # Ouput the content of an image to the stdout using the 256 colors of the #
  6. # terminal. #
  7. # Github: https://github.com/posva/catimg #
  8. ################################################################################
  9. function catimg() {
  10. if [[ -x `which convert` ]]; then
  11. zsh $ZSH/plugins/catimg/catimg.sh $@
  12. else
  13. echo "catimg need convert (ImageMagick) to work)"
  14. fi
  15. }