summaryrefslogtreecommitdiff
path: root/config/essentials/starship.toml
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-04-16 10:09:29 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-04-16 10:09:29 +0200
commit692bc52c20da866630fa401be6740bc38f8f8574 (patch)
treebe52e621dbbb15bfd2f43ec92053e4b0a817c392 /config/essentials/starship.toml
parent197a1a74f468d9d69d624b19f90280a3946455e5 (diff)
parent19ea61db733c9152f2b334b0ae9871f81ac3664d (diff)
Merge branch 'main' of debuc.com:dotfiles
Diffstat (limited to 'config/essentials/starship.toml')
-rw-r--r--config/essentials/starship.toml13
1 files changed, 11 insertions, 2 deletions
diff --git a/config/essentials/starship.toml b/config/essentials/starship.toml
index 0a9faaf..cd5832f 100644
--- a/config/essentials/starship.toml
+++ b/config/essentials/starship.toml
@@ -2,11 +2,12 @@
# Inserts a blank line between shell prompts
add_newline = false
-format = ' [\[$username@$hostname\]](bg:#000000) $all'
+# format = ' ${custom.upds}'
+format = ' [\[$username@$hostname\]](bg:#000000) ${custom.upds}$all'
right_format = """$status"""
[character]
-format = ' [❯](bold bright-yellow) '
+format = ' \$ '
[username]
style_root = "bold red"
@@ -30,3 +31,11 @@ min_time = 500
[status]
format = '($status)'
disabled = false
+
+[custom.upds]
+command = 'cat ~/.cache/updates' # shows output of command
+# detect_files = ['foo'] # can specify filters but wildcards are not supported
+when = ''' test "$(cat ~/.cache/updates)" -gt 0'''
+symbol = '📦'
+format = '$output$symbol '
+