search for password

This commit is contained in:
Artur Gurgul 2025-08-14 14:55:49 +02:00
parent f8d67e621b
commit bf52a151ff

5
bin/password Executable file
View file

@ -0,0 +1,5 @@
set -euo pipefail
login="${DEFAULT_INTERNET_LOGIN:-${1-}}"
file="$(find web -type f -path "web/*/$DEFAULT_INTERNET_LOGIN.gpg" -print | fzf --delimiter='/' --with-nth=2)"
password_entry="${file%.gpg}"
pass -c "$password_entry"