I have configured my shell to exec screen when it starts, unless it's already running within a screen session. So in a TTY, the process tree will look like something like this:loginscreenscreenzsh.In almost every case, this is what I want, but sometimes I would like to run something without screen, and I would like to do so without changing my usual setup. I'm looking for a command that replaces the topmost screen process with somehting else, e.g., a shell, like this:loginbash,without having to log back out and make temporary changes to my .zshrc or use chsh.
Replace screen process from within screen
shell;process;zsh;gnu screen