tmux-python / tmuxp

πŸ–₯️ Session manager for tmux, build on libtmux.
https://tmuxp.git-pull.com/
MIT License
4.02k stars 229 forks source link

Strange behavior on startup #888

Open foozzi opened 9 months ago

foozzi commented 9 months ago
Π‘Π½ΠΈΠΌΠΎΠΊ экрана 2023-10-12 Π² 13 26 25

Is this problem in my configurations?

Stack:

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
tony commented 9 months ago

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 commented 9 months ago

@foozzi were you able to check the above?

foozzi commented 9 months ago

@foozzi were you able to check the above?

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

arch-btw commented 3 months ago

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