]> git.netwichtig.de Git - user/henk/vcsh/zsh.git/blobdiff - .zsh_functions
Remove option to hide history commands in history
[user/henk/vcsh/zsh.git] / .zsh_functions
index 18aa5e32cfb633ea3b4581d74b4763e0b5393e29..feb061655ad2dab7b8aa6311e11d579a88791f77 100644 (file)
@@ -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 @@ 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
+}