feat: launch ssh-agent + add github ssh key to agent on shell start

This commit is contained in:
DannyDannyDanny 2025-05-11 20:30:27 +00:00
parent 70d57433f4
commit 2b06e6215e

View file

@ -10,6 +10,14 @@
fish_vi_key_bindings fish_vi_key_bindings
set fish_greeting 🐟: (set_color yellow; date +%T; set_color green; date --iso-8601; set_color normal) set fish_greeting 🐟: (set_color yellow; date +%T; set_color green; date --iso-8601; set_color normal)
# Start SSH agent if not already running
if not pgrep -u (id -u) ssh-agent > /dev/null
eval (ssh-agent -c)
end
# Add SSH keys to the agent
ssh-add ~/.ssh/id_*_github 2>/dev/null
# name: Default # name: Default
# author: Lily Ballard # author: Lily Ballard