ssh-add.zsh 283 B

12345678
  1. # Add the first user identity if the local ssh-agent doesn't already have
  2. # something.
  3. #
  4. # We silence error output for when we're sshing to a machine that we don't want
  5. # to use ssh-agent forwarding for.
  6. if [[ `ssh-add -l 2> /dev/null` != *id_?sa* ]]; then
  7. ssh-add 2> /dev/null
  8. fi