1 #function info_print () {
2 # local esc_begin esc_end
6 # printf '%s' ${esc_begin}
8 # printf '%s' "${esc_end}"
11 #function set_title () {
12 # info_print $'\e]0;' $'\a' "$@"
15 #function ESC_print () {
16 # info_print $'\ek' $'\e\\' "$@"
22 # set_title "${(%):-"%n@%m:"}" "$1"
25 # local CMD=${1[(wr)^(*=*|sudo|ssh|evince|-*)]}
34 # set_title ${(%):-"%n@%m: %~"}
43 ## local INBOXINFO="$(task rc.gc=off rc.verbose=nothing +in +PENDING count) "
45 # 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%# "
52 function new_haskell_project () {
58 function henkspngpostproc () {
65 mkdir -p resized/pngnqed/optipnged
66 convert -resize $resize_by% $img resized/$img
67 pngnq -f -d resized/pngnqed -e .png resized/$img
68 optipng -out resized/pngnqed/optipnged/$img resized/pngnqed/$img
73 local prefix="$* " str compcontext=normal:normal:_normal
77 vared str && eval $str
81 function stardewpause () {
85 search --class 'StardewValley' \
86 windowactivate --sync \
87 type --delay 100 t/pause
\r