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) "; + }; }; }; };