diff options
| author | Santo Cariotti <santo@dcariotti.me> | 2021-12-08 10:52:16 +0000 |
|---|---|---|
| committer | Santo Cariotti <santo@dcariotti.me> | 2021-12-08 10:52:16 +0000 |
| commit | 956df69d7496081db5e7b3621a0bcc7b9d7f7dfc (patch) | |
| tree | 2c1de01541d70d1cbcb59974e42102440359f153 /.config/starship.toml | |
| parent | 1eca5dc0fe3648341e1707efc811162fc5056888 (diff) | |
move to .config folder
Diffstat (limited to '.config/starship.toml')
| -rw-r--r-- | .config/starship.toml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.config/starship.toml b/.config/starship.toml new file mode 100644 index 0000000..344b069 --- /dev/null +++ b/.config/starship.toml @@ -0,0 +1,23 @@ +add_newline = false + +[directory] +truncation_length = 15 +style = "cyan" + +[line_break] +disabled = true + +[custom.docker] +description = "Shows the docker symbol if the current directory has Dockerfile or docker-compose.yml files" +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" |
