all repos

dotfiles @ 37746b1e6b4cdf2b385e8e336b3da6b58e7ef9ae

my dotfiles
1 files changed, 26 insertions(+), 0 deletions(-)
starship: add jj status
Author: Olexandr Smirnov olexsmir@gmail.com
Committed at: 2025-07-09 19:25:41 +0300
Parent: e111bf1
M config/starship.toml

@@ -29,3 +29,29 @@

[directory] truncation_length = 5 truncate_to_repo = false + +[custom.jj] +ignore_timeout = true +description = "The current jj status" +when = "jj root --ignore-working-copy" +symbol = "[jj](reset) " +command = ''' +jj log --revisions @ --no-graph --ignore-working-copy --color always --limit 1 --template ' + separate(" ", + change_id.shortest(4), + bookmarks, + concat( + if(conflict, "💥"), + if(divergent, "🚧"), + if(hidden, "👻"), + if(immutable, "🔒"), + ), + raw_escape_sequence("\x1b[1;32m") ++ if(empty, "(empty)"), + raw_escape_sequence("\x1b[1;32m") ++ coalesce( + truncate_end(29, description.first_line(), "…"), + "(no description set)", + ) ++ raw_escape_sequence("\x1b[0m"), + ) +' +''' +