From 9fce2cc8905cb0150a7c6aab7b74bdeaca762f29 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 8 Sep 2023 13:35:21 -0400 Subject: [PATCH] pass_typer: Don't use borg encryption passphrases --- .config/i3/pass_typer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/i3/pass_typer.py b/.config/i3/pass_typer.py index 45f9fde..0a52e7a 100755 --- a/.config/i3/pass_typer.py +++ b/.config/i3/pass_typer.py @@ -82,7 +82,9 @@ class ServerMatch: print("Candidate globs:") for glob in self.to_globs(): print(glob) - yield from PASSWORD_STORE.glob(str(glob)) + for path in PASSWORD_STORE.glob(str(glob)): + if not path.parent.match("**/borg"): + yield path def __str__(self) -> str: folder = self.folder if self.folder is not None else '**'