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

Specify commands to be executed when a session closes #804

Open
IsidreSole opened this issue Jan 21, 2021 · 1 comment
Open

Specify commands to be executed when a session closes #804

IsidreSole opened this issue Jan 21, 2021 · 1 comment

Comments

@IsidreSole
Copy link

Could be interesting to have a way to define additional commands to be executed when a session is killed.
It could be something like:

windows:
  - Minicom:
      layout: main-vertical
      panes: 
        - bash:
            - cd /home/isidre/work/Kairos/iopath
        - minicom:  
            - ln -s /home/isidre/work/Kairos/BJ/amp-shx/Enginyeria/Firmware/amp-shx-fw-mu01/AMP-SHX-FWMU01/json /home/isidre/work/Kairos/iopath/Download
            - ln -s /home/isidre/work/Kairos/BJ/amp-shx/Enginyeria/Firmware/amp-shx-fw-mu01/AMP-SHX-FWMU01/json /home/isidre/work/Kairos/iopath/Upload  
            - ln -s /home/isidre/work/Kairos/BJ/amp-shx/Enginyeria/Firmware/amp-shx-fw-mu01/AMP-SHX-FWMU01/json /home/isidre/work/Kairos/iopath/Script   
            - minicom

kill_session:
    - rm /home/isidre/work/Kairos/iopath/*
@ethagnawl
Copy link
Member

Have you tried using the following hooks?

# Run on project exit ( detaching from tmux session )
# on_project_exit: command

# Run on project stop
# on_project_stop: command

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

2 participants