Skip to content

Instantly share code, notes, and snippets.

View Nitive's full-sized avatar

Maxim Samoilov Nitive

  • Georgia, Tbilisi
  • 05:01 (UTC +04:00)
View GitHub Profile
@mrgrain
mrgrain / pinentry-1password.sh
Last active January 1, 2026 12:41
1Password CLI pinentry for gpg-agent
#!/bin/sh
COMMAND="op read $OP_PIN_ITEM"
echo "OK"
while read cmd rest; do
echo "cmd=$cmd rest=$rest" >&2
echo "cmd=$cmd rest=$rest" >> $LOG
case "$cmd" in
\#*)