From dba3c91e7f4e24b4dffa1af4533902ffc264e6d6 Mon Sep 17 00:00:00 2001 From: coja Date: Thu, 26 Feb 2026 06:06:13 +0100 Subject: [PATCH] [Gpg] prompt for password in the terminal --- data/gpg/extras.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/data/gpg/extras.md b/data/gpg/extras.md index 542d195..4199d6b 100644 --- a/data/gpg/extras.md +++ b/data/gpg/extras.md @@ -9,3 +9,27 @@ The `vim-gnupg` plugin lets vim edit gpg-encrypted files as if they were unencry It's probably in your package manager. If not, you'll need to endure the faff of following the [instructions](http://www.vim.org/scripts/script.php?script_id=3645). + +## Prompt for password in terminal + +Check your current gpg-agent configuration: + +```sh +gpgconf --list-options gpg-agent +``` + +Create file, if it doesnt exit `~/.gnupg/gpg-agent.conf`: + +```sh +# Force terminal prompts for passwords +pinentry-mode loopback + +# Optional: specify which pinentry program to use +pinentry-program /usr/bin/pinentry-tty +``` + +Then restart gpg-agent: +```sh +gpg-connect-agent reloadagent /bye +``` +