yubikey plugin: Now list loaded keys after insert/eject

This commit is contained in:
Pandu POLUAN 2018-02-09 08:22:34 +07:00
commit c44f30bf07

View file

@ -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. "