From be46e02c611fe5769523d2233af7c69963a38837 Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Sun, 18 May 2025 16:23:53 +0200 Subject: [PATCH] nixos/shell: provide prompt information when SSH_AUTH_SOCK exists --- nix-os/shell.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nix-os/shell.nix b/nix-os/shell.nix index 6d04613..891e3b9 100644 --- a/nix-os/shell.nix +++ b/nix-os/shell.nix @@ -133,6 +133,7 @@ in settings = { format = lib.concatStrings [ "$all" + "\${custom.sshAuthSocket}" "$line_break" "\${custom.ranger}" "$jobs" @@ -160,6 +161,12 @@ in command = "echo \"✦\""; style = "bold 208"; }; + custom.sshAuthSocket = { + when = "test -S \"$SSH_AUTH_SOCK\""; + command = "echo -e \"SSH Auth Agent\""; + style = "124"; + format = "with [$output]($style) "; + }; }; }; };