Skip to content

Instantly share code, notes, and snippets.

@JamesSwift
Created March 29, 2013 20:14
Show Gist options
  • Save JamesSwift/5273325 to your computer and use it in GitHub Desktop.
Save JamesSwift/5273325 to your computer and use it in GitHub Desktop.

Revisions

  1. JamesSwift revised this gist Mar 29, 2013. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -6,6 +6,5 @@ eval `ssh-agent`
    #Uncomment the next line if you want to automatically load ssh-keys at startup
    #ssh-add


    #Kill ssh-agent when we close the shell
    trap "ssh-agent -k" EXIT
  2. JamesSwift created this gist Mar 29, 2013.
    11 changes: 11 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #! /bin/bash

    #Start ssh-agent
    eval `ssh-agent`

    #Uncomment the next line if you want to automatically load ssh-keys at startup
    #ssh-add


    #Kill ssh-agent when we close the shell
    trap "ssh-agent -k" EXIT