From 574952b53b7b9262b5066b7c68dd13f863fd5205 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Tue, 10 Nov 2020 12:51:22 +0100 Subject: Update starship.toml ssh keys counter --- config/starship.toml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'config') 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" -- cgit v1.2.3-18-g5258