romkatv / zsh4humans

A turnkey configuration for Zsh
MIT License
1.81k stars 116 forks source link

mc inside tmux problems #267

Closed vbauerster closed 1 year ago

vbauerster commented 1 year ago

When I start mc in any tmux's window, first pane in first window gets populated with following:

❯  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)
_mc_precmd: 10: bad file descriptor
❯ PS1='%n@%m:%~%# '
_mc_precmd: 10: bad file descriptor

For context, I have zstyle ':z4h:' start-tmux 'system' set.

Is there any way to prevent this?

romkatv commented 1 year ago

Please run z4h update and see if it helps.

vbauerster commented 1 year ago

It helped, thanks for fixing!

romkatv commented 1 year ago

Great! Thanks for verifying.