1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-10-16 14:27:34 +00:00
config-fish/functions/ssh-start.fish

9 lines
271 B
Fish
Raw Permalink Normal View History

2024-09-02 23:29:03 +00:00
which ssh-agent --skip-functions >/dev/null 2>/dev/null
if [ $status -eq 0 ]
function ssh-start
log-t "Starting" "ssh-agent" "..."
eval (ssh-agent -c)
log-t "Adding" "private key" "to the agent..."
ssh-add ~/.ssh/id_ed25519
end
end