I have the following in my
~/.bash_profile in order to try to make GPG work nicely:
But when I open a new shell, I get the following:
$ echo $GPG_TTY not a tty
However, if I then
source ~/.bash_profile again it then works and contains something like
Is there a way to make this work automatically when the shell is opened? Could it be that sourcing that file initially is done before the tty is allocated and, if so, is there a way of doing it later?