summaryrefslogtreecommitdiff
path: root/config/essentials/starship.toml
diff options
context:
space:
mode:
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 '
+