From c44f30bf07858eb26443a88edff9cb8c58d8a01c Mon Sep 17 00:00:00 2001 From: Pandu POLUAN Date: Fri, 9 Feb 2018 08:22:34 +0700 Subject: [PATCH] yubikey plugin: Now list loaded keys after insert/eject --- plugins/yubikey/yubikey.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/yubikey/yubikey.plugin.zsh b/plugins/yubikey/yubikey.plugin.zsh index 11ccf48a1..7fff4f777 100644 --- a/plugins/yubikey/yubikey.plugin.zsh +++ b/plugins/yubikey/yubikey.plugin.zsh @@ -23,8 +23,8 @@ fi alias yubi-init="pkill ssh-agent; pkill gpg-agent; ssh-agent -s > $_sshpath; source $_sshpath" -alias yubi-insert="ssh-add -s $OPENSC" -alias yubi-eject="ssh-add -e $OPENSC" +alias yubi-insert="ssh-add -s $OPENSC && ssh-add -L" +alias yubi-eject="ssh-add -e $OPENSC && ssh-add -L" if [[ -r $_sshpath ]]; then echo -n "Common SSH Agent detected. "