set the right ssh/gpg agents at boot with gnome-keyring

This commit is contained in:
Bruno Carlin 2018-07-02 14:27:15 +02:00
parent 22a1a387b9
commit 3658bcf6c1
4 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@ set -x EDITOR vim
set -x VIRTUAL_ENV_DISABLE_PROMPT true
## SSH init
set -x SSH_AUTH_SOCK $XDG_RUNTIME_DIR/ssh-agent.socket
set -x SSH_AUTH_SOCK $XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh
for f in (ls $HOME/.ssh/*.pub);
set -l priv (string replace '.pub' '' $f);
if not contains $priv (ssh-add -l | awk '{ print $3 }')