ssh-add.zsh 287 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 | grep "^ssh-" | wc -l` -eq 0 ]]; then
  7. ssh-add 2> /dev/null
  8. fi