diff --git a/home/private_dot_config/fish/conf.d/gpg.fish b/home/private_dot_config/fish/conf.d/gpg.fish index d39a4549..cc85df67 100644 --- a/home/private_dot_config/fish/conf.d/gpg.fish +++ b/home/private_dot_config/fish/conf.d/gpg.fish @@ -11,6 +11,10 @@ if test -f "$HOME/.gnupg/gpg-agent.conf" set -x GPG_TTY (tty) if type -q gpg-connect-agent # Refresh gpg-agent tty - gpg-connect-agent updatestartuptty /bye >/dev/null + if is_distrobox >/dev/null + distrobox-host-exec gpg-connect-agent updatestartuptty /bye >/dev/null + else + gpg-connect-agent updatestartuptty /bye >/dev/null + end end end