tmuxp icon indicating copy to clipboard operation
tmuxp copied to clipboard

Strange behavior on startup

Open foozzi opened this issue 1 year ago • 6 comments

Снимок экрана 2023-10-12 в 13 26 25

Is this problem in my configurations?

Stack:

  • zsh 5.9 (oh-my-zsh)
  • tmux 3.3a
  • alaclaritty 0.12.3 (5efb069
  • tmuxp 1.31.0, libtmux 0.23.2
  • Python 3.11.5

config:

session_name: main
windows:
  - window_name: fz0x1
    layout: even-horizontal
    shell_command_before:
      - cd ~/ # run as a first command in all panes
    panes:
      - neofetch

foozzi avatar Oct 12 '23 17:10 foozzi

It may have to do with the initialization time of the shell session in general

If you were to use a barebones .zshrc / .zshenv / etc., or just chsh -s to sh (/bin/sh?) temporarily, does it still happen?

Another idea: Try adding sleep_before/sleep_after and adjusting those params:

session_name: main
windows:
  - window_name: first window
    layout: even-horizontal
    shell_command_before:
      - cmd: cd ~/
        sleep_before: .25
        sleep_after: .25
    panes:
      - neofetch

tony avatar Oct 13 '23 11:10 tony

@foozzi were you able to check the above?

tony avatar Oct 14 '23 20:10 tony

@foozzi were you able to check the above?

Not yet, but I think your answer will help me. Thanks.

foozzi avatar Oct 15 '23 01:10 foozzi

Having the same issue.

@tony do you happen to know of any other solution? sleep_before: & sleep_after: didn't work unfortunately.

2024-04-08_13-04

arch-btw avatar Apr 08 '24 20:04 arch-btw

I'm experiencing this issue as well. Does anyone have any other workarounds to attempt to resolve this odd issue?

keifererikson avatar Aug 04 '24 18:08 keifererikson

@arch-btw @keifererikson @arch-btw I am not reproducing this.

Can you rule out it being due to shell / shell configuration? It may be a non-tmux issue:

If you try to chsh to a different shell with no shell configuration, kill tmux, launch into the new shell, then tmuxp load - does it still happen?

If you have reliable recreation steps, that would almost ensure a fix.

tony avatar Aug 04 '24 19:08 tony