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

sleep / wait for commands #748

Closed
tony opened this issue Mar 12, 2022 · 1 comment
Closed

sleep / wait for commands #748

tony opened this issue Mar 12, 2022 · 1 comment

Comments

@tony
Copy link
Member

tony commented Mar 12, 2022

#704 (comment)

session_name: 'glorp'
# Reference this issue for why we need to use `source` here:
# https://github.com/tmux-python/tmuxp/issues/412
shell_command_before:
- cmd: source $(poetry env info --path)/bin/activate
  sleep_before: 1
  sleep_after: 1
windows:
  - panes:
    - echo "hello"

You'd this this would be possible

session_name: 'glorp'
# Reference this issue for why we need to use `source` here:
# https://github.com/tmux-python/tmuxp/issues/412
windows:
  - panes:
    - shell_command:
      - cmd: source $(poetry env info --path)/bin/activate
        sleep_after: 1
      - echo "hello"
@tony
Copy link
Member Author

tony commented Mar 14, 2022

Live in 1.10.0b4 pypi branch

pip install --user --upgrade --pre tmuxp==1.10.0b4

or pipx install [email protected] 'tmuxp==1.10.0b4' then [email protected] load <yaml file>

docs: skip command execution

@tony tony closed this as completed Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant