system/scripts/fish/functions/__ssh_agent_start.fish
Georg 209f09dc5c fish greeting with ssh-agent magic
Signed-off-by: Georg <georg@lysergic.dev>
2021-12-02 22:29:26 +01:00

7 lines
208 B
Fish

# 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