Skip to content

Commit

Permalink
Add ssh-agent snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
andre487 committed Mar 29, 2021
1 parent b33fa98 commit a8ae257
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions snippets/ssh-agent.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if ! ssh-add -l &> /dev/null; then
eval "$(ssh-agent)" &> /dev/null
ssh-add "$HOME/.ssh/id_rsa" &> /dev/null
fi

0 comments on commit a8ae257

Please sign in to comment.