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}${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%# "
52 function new_haskell_project () {
58 function henkspngpostproc () {
65 mkdir -p resized/pngnqed
66 convert -resize $resize_by% $img resized/$img
67 pngnq -f -d resized/pngnqed -e .png resized/$img