summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2020-11-10 12:37:32 +0100
committerGitHub <noreply@github.com>2020-11-10 12:37:32 +0100
commitad5870cb1ced3e97cd85022f2664ce70ce04e047 (patch)
treee2500b743f026e88aac4ac206408f758e1d7ecc5 /config
parent52d43bba2a85257cd27b8c659ab9a42404e8e7c9 (diff)
Create starship.toml
Diffstat (limited to 'config')
-rw-r--r--config/starship.toml14
1 files changed, 14 insertions, 0 deletions
diff --git a/config/starship.toml b/config/starship.toml
new file mode 100644
index 0000000..42bac54
--- /dev/null
+++ b/config/starship.toml
@@ -0,0 +1,14 @@
+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 $?); """