summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
authorMike Vink <ivi@vinkies.net>2025-02-09 00:16:41 +0100
committerMike Vink <ivi@vinkies.net>2025-02-09 00:16:41 +0100
commitb1002ac82b0b3401f4af3520cb70cd1632d5c5d6 (patch)
treea37d0a02b62ba1a4b3269d268d44beb32cde2c01 /.profile
parent60190d94c78400bb796f5d5663c792612dab586a (diff)
gpg ssh
Diffstat (limited to '.profile')
-rw-r--r--.profile4
1 files changed, 4 insertions, 0 deletions
diff --git a/.profile b/.profile
index 8cd2ee7..7455fa5 100644
--- a/.profile
+++ b/.profile
@@ -1,4 +1,8 @@
export ENV=$HOME/.kshrc
+export GPG_TTY="$(tty)"
+export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
+gpgconf --launch gpg-agent
+gpg-connect-agent updatestartuptty /bye > /dev/null
if [ -z $DISPLAY ] && [ $(tty) = /dev/tty1 ]; then
startx
fi