environment/bin/password
2025-08-26 08:51:37 +02:00

20 lines
No EOL
504 B
Ruby
Executable file

#!/usr/bin/env ruby
# password for account, must be one or the default
# password amazon
# copy login
# password amazon -l
# search for password for given account
# password -l artur@gurgul.org
# http://example.com/login
# password example -l artur@gurgul.org
# 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"