Exemple #1
0
def new_conn(name):
    Host.get_by_name(name.decode("utf-8")).connect()
Exemple #2
0
def new_conn(name):
    Host.get_by_name(name.decode("utf-8")).connect()
Exemple #3
0
def current_host():
    for l in tmux_cmd("list-windows -F",
                      "#{window_name} #{window_active}").splitlines():
        name, active = l.strip().split()
        if active == "1":
            return Host.get_by_name(name.decode("utf-8"))
Exemple #4
0
def current_host():
    for l in tmux_cmd("list-windows -F",
                      "#{window_name} #{window_active}").splitlines():
        name, active = l.strip().split()
        if active == "1":
            return Host.get_by_name(name.decode("utf-8"))