From d23e86391532ccb662850b75ae0543d09d4e112e Mon Sep 17 00:00:00 2001 From: katherine Date: Fri, 11 Oct 2024 07:51:58 +1000 Subject: exclude otp entries from pass menu --- .config/herbstluftwm/pass.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.config/herbstluftwm') diff --git a/.config/herbstluftwm/pass.sh b/.config/herbstluftwm/pass.sh index 32a7b2d..325197b 100755 --- a/.config/herbstluftwm/pass.sh +++ b/.config/herbstluftwm/pass.sh @@ -7,7 +7,9 @@ zparseopts -M -E -A args \ local password_files -password_files=( ~/.password-store/**/*.gpg ) +setopt extendedglob + +password_files=( ~/.password-store/**/^(otp-)*.gpg ) password_files=( ${password_files:t:r} ) printf "%s\n" $password_files | dmenu -fn "${bfont}:size=${bfont_size}" -i \ -- cgit v1.2.3