Command on quit #3514
Answered
by
Lockszmith-GH
noahfraiture
asked this question in
Q&A
-
Hello, I have a layout that open different shell inside a container and I would like to close that container when I quit the layout. Is it possible to run a command when I quit the zellij layout with ctrl+q ? I use exegol |
Beta Was this translation helpful? Give feedback.
Answered by
Lockszmith-GH
Jul 22, 2024
Replies: 1 comment
-
I can think of a number of ways to deal with this. One is to map the Ctrl+q to run a command, then exit. Another is to have the layout executable be |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
noahfraiture
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can think of a number of ways to deal with this.
One is to map the Ctrl+q to run a command, then exit.
Another is to have the layout executable be
sh -c "<execute container>; <execute cleanup>"
- this way when you exit the container, the cleanup action runs.