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\\' "$@"
20 if [[ "$TERM" == screen* ]] ; then
21 local CMD=${1[(wr)^(*=*|sudo|ssh|evince|-*)]}
26 set_title "${(%):-"%n@%m:"}" "$1"
32 if [[ $TERM == screen* ]] ; then
38 set_title ${(%):-"%n@%m: %~"}
44 vi $( find $1 -type f )
47 function shufflevideos () {
48 find $@ -type f -iregex ".*\.\(avi\|flv\|mkv\|mpeg\|mpg\|wmv\|wva\|mp4\|webm\|wva\|m4v\|ogm\|mp4\|mov\)" -exec mpv --shuffle $MPVOPTS \{\} +