diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-04-15 17:37:53 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-04-15 17:37:53 +0200 |
commit | 25a2605405d8ec7645d0664914c3b7290745afec (patch) | |
tree | 8afe0d8828a3909bfe2774385c8bebc039cf6d6e /config/essentials/starship.toml | |
parent | c9a06111585c189607ff1e81b77bb32f0a25a992 (diff) |
synced
Diffstat (limited to 'config/essentials/starship.toml')
-rw-r--r-- | config/essentials/starship.toml | 13 |
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 ' + |