zsh-histdb
zsh-histdb copied to clipboard
launching midnight comader (mc) floods history with garbage
this is histdb output after I have started mc, and opened some jpg file in mc:
mc
mc_print_command_buffer () { printf "%s\\n" "$BUFFER" >&12; }
zle -N mc_print_command_buffer
bindkey '^[_' mc_print_command_buffer
mc_print_cursor_position () { echo $CURSOR >&12}
zle -N mc_print_cursor_position
bindkey '^[+' mc_print_cursor_position
_mc_precmd(){ pwd>&10;kill -STOP $$ }; precmd_functions+=(_mc_precmd)
cd "`printf '%b' '\0057tmp'`"