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 8
for example) for a given context, instead of visually counting which tab to click or (or how many ctrl-pgup to hit).cd
ed to source code when I'm working on code, though, so that matches up with your usage.ssh
ing 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 havescreen
in your muscle-memory, learn tmux because screen is old and crufty. I could probably switch totmux
and config it to use all the same keybinds as I use forscreen
, but screen still works fine for me.