- CGenie
- Original repository
The goal is to rewrite the original workflow to make it work with Alfred 5 and the minimun dependencies.
- Golang 1.20.4
brew install go
- pass 1.7.4
brew install pass - pass-otp 1.2.0
brew install pass-otp - alfred 5
brew install alfred - gpg, and gpg-agent 2.4.1
brew install gnupg - pinentry-mac 1.1.1
brew install pinentry-mac(this is GUI frontend forgpg-agent).- Get path for
pinentry-macwithwhich pinentry-mac - Next configure
gpg-agentto usepinentry-macand not the bundled one, editing~/.gnupg/gpg-agent.conf:pinentry-program /path/to/pinentry-mac
- Get path for
You can tweak some of the gpg-agent settings in ~/.gnupg/gpg-agent.conf:
max-cache-ttl 7200
After 7200 seconds, GPG will forget your master password.
make devbasically it will run the build for production and then it will open the workflow in Alfred
make
Basic Alfred commands:
This will search through your passwords using the filter terms you provided.
The password will be copied to clipboard and cleared after 45 seconds (this is the default
pass -c behavior). You can change that time by modifying the env variable
PASSWORD_STORE_CLIP_TIME. Or in the pass-show.sh file you can change this line
pass show -c $QUERY
into this one
pass show $QUERY | awk 'BEGIN{ORS=""} {print; exit}' | pbcopy
to aviod auto-clearing of clipboard.
Generates add a new password with default length of 20 chars and save to pass store. If second argument is provided, it will be used as the username/email for the entry. with the metadata login. The password generated will be copied to your clipboard.
This will search through your OTP passwords (requires pass-otp) using the filter terms you provided.
This will search through your login fields using the filter terms you provided.
The order of the fields is: login, email, username, user until the first match.
Example:
pl github.comYou will have on your clipboard the login field of the matched entry.