This commit is contained in:
Daniel Langbein 2023-08-13 16:13:44 +02:00
parent e7759f7303
commit e6761efd87
2 changed files with 5 additions and 4 deletions

View File

@ -92,7 +92,7 @@ fi
## Note about "interactive, non-login, shell"
The gnupg manual is talking about "login shell" but mentions "~/.bashrc",
so I assume they mean a "interactive, non-login, shell".
so I assume they mean an "interactive, non-login, shell".
See https://wiki.archlinux.org/title/bash#Configuration_files
Correct files to set `SSH_AGENT_PID` and `GPG_TTY`:
@ -100,9 +100,9 @@ Correct files to set `SSH_AGENT_PID` and `GPG_TTY`:
* `/etc/bash.bashrc`
* `/etc/zsh/zshrc`
These not work:
These do not work:
* `/etc/profile.d/99_gnupg.sh` does **not** work!
* `/etc/profile.d/99_gnupg.sh`
> `/etc/profile` This file should be sourced by all POSIX sh-compatible shells
> upon login: it sets up $PATH and other environment variables and application-specific
> (/etc/profile.d/*.sh) settings upon login.

View File

@ -4,6 +4,7 @@
set -e
cat
# shellcheck disable=SC2016
echo '
GPG_TTY=$(tty)
export GPG_TTY