2025-08-26 08:51:37 +02:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
|
|
|
|
|
# password for account, must be one or the default
|
2025-08-15 09:49:16 +02:00
|
|
|
# password amazon
|
2025-08-26 08:51:37 +02:00
|
|
|
# copy login
|
|
|
|
|
# password amazon -l
|
|
|
|
|
|
|
|
|
|
# search for password for given account
|
2025-08-15 09:49:16 +02:00
|
|
|
# password -l artur@gurgul.org
|
|
|
|
|
|
2025-08-26 08:51:37 +02:00
|
|
|
# http://example.com/login
|
|
|
|
|
# password example -l artur@gurgul.org
|
|
|
|
|
|
2025-08-15 09:49:16 +02:00
|
|
|
|
|
|
|
|
|
2025-08-26 08:51:37 +02:00
|
|
|
# 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"
|