minidotfiles/shellrcsnippets/gpg-agent-for-ssh

8 lines
282 B
Plaintext
Raw Permalink Normal View History

#!/usr/bin/env bash
2023-02-26 21:41:28 +02:00
# SPDX-FileCopyrightText: 2023 Aminda Suomalainen <suomalainen+git@mikaela.info>
#
# SPDX-License-Identifier: CC0-1.0
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
gpg-connect-agent updatestartuptty /bye >/dev/null 2>&1