Set GPG_TTY for terminal sessions

This commit is contained in:
lachtan obecny
2026-11-04 11:13:29 +01:00
parent 51fdde4e2c
commit 60475d9c57
3 changed files with 11 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
# shellcheck shell=bash
if is_stdin_terminal && can_run gpg; then
GPG_TTY=$(tty)
export GPG_TTY
fi