zsh: add 2png function

This commit is contained in:
Henrik Lissner 2015-07-30 17:57:22 +02:00
parent 7dc10b3ffd
commit 65ff7927e4

View file

@ -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 $* }