Sometimes I inadvertently exit from a Terminal session (usually because I think I'm connected to a remote system, when I'm not), so I get to this point:
How I can I restart the session at this point ? I don't want to close the window or tab because I have a bunch of tabs all set up for my normal workflow, so I just want to get the session in the current tab going again (i.e. get back to a bash prompt).
The only solution I've found so far is to quit Terminal completely and open it again, but that is far from ideal as it obviously interrupts anything else I'm doing in other Terminal windows/tabs.
^t 8for example) for a given context, instead of visually counting which tab to click or (or how many ctrl-pgup to hit).
cded to source code when I'm working on code, though, so that matches up with your usage.
sshing somewhere. I just got used to using screen, and use it locally as well as on remote sessions. As I understand it, if you don't already have
screenin your muscle-memory, learn tmux because screen is old and crufty. I could probably switch to
tmuxand config it to use all the same keybinds as I use for
screen, but screen still works fine for me.