]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/catimg/catimg.plugin.zsh
initial
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / catimg / catimg.plugin.zsh
1 ################################################################################
2 # catimg script by Eduardo San Martin Morote aka Posva                         #
3 # https://posva.net                                                            #
4 #                                                                              #
5 # Output 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
10
11 function catimg() {
12   if [[ -x  `which convert` ]]; then
13     zsh $ZSH/plugins/catimg/catimg.sh $@
14   else
15     echo "catimg need convert (ImageMagick) to work)"
16   fi
17 }