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 () {
63 echo "Creating Directories …"
64 mkdir --parents resized/pngnqed/optipnged optimized
67 echo "Resizing image …"
68 convert -resize $resize_by% "$img" "resized/$img"
69 echo "Running pngnq …"
70 pngnq -s1 -f -d "resized/pngnqed" -e .png "resized/$img"
71 echo "Running optipng …"
72 optipng -force -out "resized/pngnqed/optipnged/$img" "resized/pngnqed/$img"
73 echo "Moving final image to directory 'optimized' …"
74 cp --verbose --interactive --target-directory=optimized/ "resized/pngnqed/optipnged/$img"
75 echo "Removing temporary images …"
76 #rm --verbose --interactive \
79 "resized/pngnqed/$img" \
80 "resized/pngnqed/optipnged/$img"
82 rmdir --parents resized/pngnqed/optipnged
86 local prefix="$* " str compcontext=normal:normal:_normal
90 vared str && eval $str
94 function stardewpause () {
98 search --class 'StardewValley' \
99 windowactivate --sync \
100 type --delay 100 t/pause
\r
104 function henkpwgen () {
105 echo $( (tr -cd '[:alnum:]' | head -c $1) < /dev/urandom)