Commit 832dbdd6 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Enable GPG agent for SSH if installed

parent c897a57c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -12,6 +12,9 @@ has vim &&
	export EDITOR=vim ||
	export EDITOR=vi

has gpg-agent &&
	export SSH_AUTH_SOCK=`gpgconf --list-dirs agent-ssh-socket`


## LOCAL SOFTWARE ##

+4 −0
Original line number Diff line number Diff line
@@ -57,6 +57,10 @@ make_config() {
		"
}

# Ensure the GPG agent is running if installed
if type gpg-agent; then
	gpg-connect-agent /bye
fi >&2

case " $*" in
	*' -F'*) ${SSH_BIN} "$@" ;;