From 65ff7927e4fdcb04216591d5e645f46621026d31 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 30 Jul 2015 17:57:22 +0200 Subject: [PATCH] zsh: add 2png function --- zsh/aliases.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index 3f9affdb..efc8623e 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -70,6 +70,12 @@ alias rkg='noglob rake -g' alias m='make' alias c11='CPPFLAGS+=-std=c++11 ' +# needs imagemagick and ghostscript (for ai) +2png() { + mkdir -p _png; + for f in *.(psd|ai); do convert -resize 1200x1200 ${f}[0] _png/${f}.png; done; +} + # GIT is-callable 'hub' && alias git='hub' g() { [ $# -eq 0 ] && git status --short || git $* }