Exiting from a command that was specified in the layout kdl file #3870
-
I had lazygit running as a command specified in a layout.kdl file, but when I exit from the session, I am faced with whether I want to rerun the command, drop the shell, or exit. I prefer not to be asked this question and want to return to the shell, is it possible? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 14 replies
-
That is Session Resurrection, which is on by default. Also see: #2919 |
Beta Was this translation helpful? Give feedback.
-
Sorry, I think I didn't explain it correctly, I meant the lazygit session, not zellij. When I quit a command that was specified as a |
Beta Was this translation helpful? Give feedback.
-
Opening a separate thread, so that I can delete it if becomes a 'thing of it's own' - which I don't intend it to be. In response to your reply, emphasis added by me:
I may be the asshole here for being triggered by it, and I wrote a whole piece about "how we should behave", then decided against it, as to not hijack this conversation too much - as it would just make things worse for everyone. It feels like you're trying to insult the tool and/or it's development by the use of words like "primitive", "really sad". While I doubt you felt your last comment was toxic in any way, I'd like you to take note how it can be perceived. I would recommend you read this thread from another community and the articles linked there. |
Beta Was this translation helpful? Give feedback.
I see... one way I can think of, is to not run
yazi
, but instead run it in a script that 'exits to the shell', from the command line it will look something like:sh -c 'yazi; exec /bin/bash -l'
so this will run
sh
with the command lineyazi; exec /bin/bash -l
, which will first runyazi
, then when it drops fromyazi
, it will replace the existing process with/bin/bash -l
which will open an interactive shell.