all repos

dotfiles @ 37746b1e6b4cdf2b385e8e336b3da6b58e7ef9ae

i use rach linux btw
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
                29
                 [directory]

              
                30
                30
                 truncation_length = 5

              
                31
                31
                 truncate_to_repo = false

              
                
                32
                +

              
                
                33
                +[custom.jj]

              
                
                34
                +ignore_timeout = true

              
                
                35
                +description = "The current jj status"

              
                
                36
                +when = "jj root --ignore-working-copy"

              
                
                37
                +symbol = "[jj](reset) "

              
                
                38
                +command = '''

              
                
                39
                +jj log --revisions @ --no-graph --ignore-working-copy --color always --limit 1 --template '

              
                
                40
                +  separate(" ",

              
                
                41
                +    change_id.shortest(4),

              
                
                42
                +    bookmarks,

              
                
                43
                +    concat(

              
                
                44
                +      if(conflict, "💥"),

              
                
                45
                +      if(divergent, "🚧"),

              
                
                46
                +      if(hidden, "👻"),

              
                
                47
                +      if(immutable, "🔒"),

              
                
                48
                +    ),

              
                
                49
                +    raw_escape_sequence("\x1b[1;32m") ++ if(empty, "(empty)"),

              
                
                50
                +    raw_escape_sequence("\x1b[1;32m") ++ coalesce(

              
                
                51
                +      truncate_end(29, description.first_line(), "…"),

              
                
                52
                +      "(no description set)",

              
                
                53
                +    ) ++ raw_escape_sequence("\x1b[0m"),

              
                
                54
                +  )

              
                
                55
                +'

              
                
                56
                +'''

              
                
                57
                +