Is there a way to execute a command on the local machine after disconnecting from an ssh server?
This would have the same behavior as ssh_config LocalCommand that executes a command on the local machine after successfully connecting to the server.
This could be used to set terminal window title to that of the current server. Using LocalCommand when connecting, and that something else after disconnecting.
Alternatively, is there a way to automatically run a command after a specific command using bash?