This commit is contained in:
Artur Gurgul 2025-08-26 08:51:37 +02:00
parent 91a36e03a8
commit c8b057e6a2
4 changed files with 33 additions and 18 deletions

View file

@ -1,12 +1,20 @@
# search & copy
#!/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
# password -a artur@gurgul.org http://example.com/login
# 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"
# 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"