all repos — dotfiles @ 0c24f03e03c6d88ff9d620d308a778bcbde8dc77

my *nix dotfiles

bin/setup-gpg (view raw)

1#!/bin/sh
2# unlock gpg key on login
3
4pw="$(ssh-askpass 'Unlock your GPG key')"
5keygrip=$(gpg-connect-agent -q 'keyinfo --list' /bye | awk '/KEYINFO/ { print $3 }')
6
7for k in $keygrip; do
8    echo "$pw" | /usr/local/libexec/gpg-preset-passphrase --preset $k
9done