def star_shell(cluster, logdir, cmdline, *args):
    connections = []
    for k in sorted(cluster.connections.keys()):
        if k not in cluster.disabled:
            connections.append(str(k))

    os.putenv('RADSSH_CONNECTIONS', ' '.join(connections))
    os.system('PS1="(RadSSH subshell) $ " bash')
Drop into a local shell - exit subshell to return with session intact
dataset/ETHPy150Open radssh/radssh/radssh/star_commands.py/star_shell