1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-12-23 07:14:22 +00:00
config-fish/functions/ssh-start.fish

9 lines
271 B
Fish
Raw 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