Skip to content

Instantly share code, notes, and snippets.

@Jwpe
Jwpe / ssh_agent_start.fish
Last active August 29, 2015 14:04 — forked from schaary/ssh_agent_start.fish
Activate ssh_agent in Fish
function start_agent
echo "Initializing new SSH agent ..."
ssh-agent -c | sed 's/^echo/#echo/' > $SSH_ENV
echo "succeeded"
chmod 600 $SSH_ENV
. $SSH_ENV > /dev/null
ssh-add
end
function test_identities