summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/starship.toml9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/starship.toml b/config/starship.toml
index 42bac54..344b069 100644
--- a/config/starship.toml
+++ b/config/starship.toml
@@ -12,3 +12,12 @@ description = "Shows the docker symbol if the current directory has Dockerfile o
command = "echo 🐳"
files = ["Dockerfile", "docker-compose.yml", "docker-compose.yaml"]
when = """ command -v docker &> /dev/null; exit (echo $?); """
+
+[custom.ssh_keys]
+description = "SSH key count"
+when = "ssh-add -l | grep -v -q 'no identities'"
+command = "ssh-add -l | grep -v 'no identities' | wc -l"
+format = "$symbol[$output]($style) "
+shell = ["bash", "--noprofile", "--norc"]
+symbol = "🔑"
+style = "bold fg:green"