Skip to content

Commit

Permalink
Export GPG_TTY and SSH_AUTH_SOCK
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Bahn authored and tomprogrammer committed Oct 7, 2024
1 parent 926cfdf commit 79505aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions runcoms/zprofile
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,8 @@ fi
if [[ -z "$LESSOPEN" ]] && (( $#commands[(i)lesspipe(|.sh)] )); then
export LESSOPEN="| /usr/bin/env $commands[(i)lesspipe(|.sh)] %s 2>&-"
fi

# Gnupg
export GPG_TTY="$(tty)"
gpg-connect-agent updatestartuptty /bye >/dev/null
export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh"

0 comments on commit 79505aa

Please # to comment.