]> arthur.barton.de Git - ax-zsh.git/blobdiff - default_plugins/ssh/ssh.zshrc
ssh: Add "verbose" option to ssh-autoadd function
[ax-zsh.git] / default_plugins / ssh / ssh.zshrc
index c7f5c856527bdfd0edfd7a5d75ae96a6e0ab8441..830390fa14cf630e837ebbde2954a452a5f79ec6 100644 (file)
@@ -11,6 +11,7 @@ ssh-autoadd() {
        [[ -z "$SSH_AUTH_SOCK" ]] && return 0
        ssh-add -l >/dev/null && return 0
        [[ $? -eq 2 ]] && return 2
+       [[ "$1" = "-v" ]] && echo "SSH agent is running, but has no identities."
        ssh-add
 }