From 2b06e6215e4e1a4c257ebf413e687f3b9a166635 Mon Sep 17 00:00:00 2001 From: DannyDannyDanny Date: Sun, 11 May 2025 20:30:27 +0000 Subject: [PATCH] feat: launch ssh-agent + add github ssh key to agent on shell start :sparkles: --- nixos/fish.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nixos/fish.nix b/nixos/fish.nix index f0875f9..2ca1d1a 100644 --- a/nixos/fish.nix +++ b/nixos/fish.nix @@ -10,6 +10,14 @@ fish_vi_key_bindings 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 # author: Lily Ballard