fix: do not assume gpgconf
This commit is contained in:
parent
0ec161578f
commit
9cbeed5b2a
1 changed files with 4 additions and 2 deletions
6
.profile
6
.profile
|
@ -9,5 +9,7 @@ PATH="/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|||
|
||||
[ -f "$HOME/.config/aliasrc" ] && source $HOME/.config/aliasrc
|
||||
|
||||
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||
gpgconf --launch gpg-agent
|
||||
if ! [ -x "$(command -v gpgconf)" ]; then
|
||||
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||
gpgconf --launch gpg-agent
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue