Skip to content

Commit

Permalink
zsh: fix authentication
Browse files Browse the repository at this point in the history
Signed-off-by: Mattijs Korpershoek <mattijs.korpershoek@gmail.com>
  • Loading branch information
makohoek committed Aug 23, 2023
1 parent 11084a7 commit cb490a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zsh/.zshenv
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This is only enabled on local sessions
# On remote sessions, we rely on ssh forwarding for ssh authentication

if [ -n $SSH_CONNECTION ]; then
if [[ $SSH_CONNECTION = '' ]]; then
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
fi

0 comments on commit cb490a7

Please sign in to comment.