environment/bin/password
2025-08-14 14:55:49 +02:00

5 lines
No EOL
225 B
Text
Executable file

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"