summaryrefslogtreecommitdiffstats
path: root/scripts/fish/functions/__ssh_agent_start.fish
blob: 58a762deebcd9412e95e055a3d7ae655e794e87a (plain)
1
2
3
4
5
6
# from https://github.com/danhper/fish-ssh-agent/
function __ssh_agent_start -d "start a new ssh agent"
  ssh-agent -c | sed 's/^echo/#echo/' > $SSH_ENV
  chmod 600 $SSH_ENV
  source $SSH_ENV > /dev/null
end