Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange behavior on startup #888

Open
foozzi opened this issue Oct 12, 2023 · 6 comments
Open

Strange behavior on startup #888

foozzi opened this issue Oct 12, 2023 · 6 comments

Comments

@foozzi
Copy link

foozzi commented Oct 12, 2023

Снимок экрана 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 foozzi changed the title Strange behavior startup Strange behavior on startup Oct 12, 2023
@tony
Copy link
Member

tony commented Oct 13, 2023

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
Copy link
Member

tony commented Oct 14, 2023

@foozzi were you able to check the above?

@foozzi
Copy link
Author

foozzi commented Oct 15, 2023

@foozzi were you able to check the above?

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

@arch-btw
Copy link

arch-btw commented Apr 8, 2024

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

@keifererikson
Copy link

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

@tony
Copy link
Member

tony commented Aug 4, 2024

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants