From 319aca391dea145eb3b366aa695a76b38066417b Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 6 Jul 2022 23:28:23 -0400 Subject: [PATCH] pass_typer: Allow for environment variables before ssh command --- .config/i3/pass_typer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/i3/pass_typer.py b/.config/i3/pass_typer.py index d1403ec..f073eb1 100755 --- a/.config/i3/pass_typer.py +++ b/.config/i3/pass_typer.py @@ -63,7 +63,7 @@ def select_and_type(server_name: Path) -> None: window_name = cmd(["xdotool", "getactivewindow", "getwindowname"]).stdout.strip() -ssh_match = re.search(":(mosh|ssh) (?P.*)", window_name) +ssh_match = re.search(":([^ ]+=[^ ]* )*(mosh|ssh) (?P.*)", window_name) if ssh_match: server_name = alias(ssh_match.group("server"))