jimeh / tmuxifier

Tmuxify your Tmux. Powerful session, window & pane management for Tmux.
MIT License
1.26k stars 109 forks source link

Tmuxifier not waiting for session to be ready #80

Open amacgregor opened 7 years ago

amacgregor commented 7 years ago

I'm using zsh, which is apparently slow enough to cause the following bug.

image

All the run_cmd are run before the shell is ready and this nothing is really executed, I'm not sure what the issue could be or how to force tmuxifier to check for the session but I'm open to suggestions.

TheoKouzelis commented 7 years ago

Not sure if this helps? But I have windows that depend on Vagrant being booted up. So I created a window that runs "vagrant up", then loads the windows that depend on vagrant, then kills itself. This way the depending windows are loaded after Vagrant.

new_window "vagrant-boot"

run_cmd "vagrant up"
run_cmd "tmuxifier load-window vagrant-logs"
run_cmd "tmuxifier load-window vagrant-console"
run_cmd "tmuxifier load-window vagrant-gulp"
run_cmd "tmux kill-window"

https://github.com/TheoKouzelis/my-dev-env/blob/master/.tmux-layouts/vagrant-boot.window.sh