From 25a2605405d8ec7645d0664914c3b7290745afec Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 15 Apr 2024 17:37:53 +0200 Subject: synced --- config/essentials/starship.toml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'config/essentials/starship.toml') 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 ' + -- cgit v1.2.3