]> git.netwichtig.de Git - user/henk/vcsh/zsh.git/commitdiff
Merge branch 'master' of ssh://git.netwichtig.de/vcsh-zsh
authorHendrik Jäger <hendrik@securosys.ch>
Tue, 15 Aug 2017 06:00:28 +0000 (08:00 +0200)
committerHendrik Jäger <hendrik@securosys.ch>
Tue, 15 Aug 2017 06:00:28 +0000 (08:00 +0200)
1  2 
.zsh_functions

diff --combined .zsh_functions
index 99a1d3a4052a6fa94f4fbc8e8e5d9746077af78f,137c38151311bd5be55c5c1ec11c95e3612113e1..feb061655ad2dab7b8aa6311e11d579a88791f77
@@@ -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
+ }