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: %~"}
42 if [[ -n ${vcs_info_msg_0_} ]]; then
43 local HENKSPROMPT="%(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%# "
44 PS1="$HENKSPROMPTHEADER$HENKSPROMPT"
46 local HENKSPROMPT="%(0?..%F{red}E%?%f )%(1j.%F{yellow}J%j%f .)%(3L.%F{yellow}L%L%f .)%3~ %F{green}$VCSH_REPO_NAME%f%# "
47 PS1="$HENKSPROMPTHEADER$HENKSPROMPT"
52 vi $( find $1 -type f )
55 function shufflevideos () {
56 find $@ -type f -iregex ".*\.\(avi\|flv\|mkv\|mpeg\|mpg\|wmv\|wva\|mp4\|webm\|wva\|m4v\|ogm\|mp4\|mov\)" -exec mpv --shuffle $MPVOPTS \{\} +
59 function zle-line-init zle-keymap-select {
60 RPS1="%B${${KEYMAP/vicmd/c}/(main|viins)/}%b"