From: Hendrik Jäger Date: Tue, 15 Aug 2017 06:00:28 +0000 (+0200) Subject: Merge branch 'master' of ssh://git.netwichtig.de/vcsh-zsh X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=147239d00c9b3ce1847942b7da2be2ca1c2a384f;hp=-c;p=user%2Fhenk%2Fvcsh%2Fzsh.git Merge branch 'master' of ssh://git.netwichtig.de/vcsh-zsh --- 147239d00c9b3ce1847942b7da2be2ca1c2a384f diff --combined .zsh_functions index 99a1d3a,137c381..feb0616 --- a/.zsh_functions +++ b/.zsh_functions @@@ -40,9 -40,9 +40,9 @@@ precmd () vcs_info - local INBOXINFO="$(task rc.gc=off rc.verbose=nothing +in +PENDING count) " +# local INBOXINFO="$(task rc.gc=off rc.verbose=nothing +in +PENDING count) " - PS1="${HENKSPROMPTHEADER}${INBOXINFO}%(0?..%F{red}E%?%f )%(1j.%F{yellow}J%j%f .)%(3L.%F{yellow}L%L%f .)%3~ %F{green}$VCSH_REPO_NAME%f%F{yellow}${vcs_info_msg_0_}%f%# " + PS1="${HENKSPROMPTHEADER}%(0?..%F{red}E%?%f )%(1j.%F{yellow}J%j%f .)%(3L.%F{yellow}L%L%f .)%3~ %F{green}$VCSH_REPO_NAME%f%F{yellow}${vcs_info_msg_0_}%f%# " } function vifind () { @@@ -54,3 -54,16 +54,16 @@@ function new_haskell_project () cd $1 git init } + + function henkspngpostproc () { + local resize_by + local img + resize_by="$1" + shift + for img in $* + do + mkdir -p resized/pngnqed + convert -resize $resize_by% $img resized/$img + pngnq -f -d resized/pngnqed -e .png resized/$img + done + }