diff options
author | Santo Cariotti <santo@dcariotti.me> | 2020-11-10 12:51:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-10 12:51:22 +0100 |
commit | 574952b53b7b9262b5066b7c68dd13f863fd5205 (patch) | |
tree | a5ddfb4afc93ecaf57b496c7818f7cc4c3db58d3 | |
parent | ad5870cb1ced3e97cd85022f2664ce70ce04e047 (diff) |
Update starship.toml
ssh keys counter
-rw-r--r-- | config/starship.toml | 9 |
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" |