Compare commits

...

3 commits

Author SHA1 Message Date
ea8682571c add starship jj tools 2026-02-24 12:28:41 -05:00
2c14665f05
Merge branch 'main' of github.com:gyoder/dots 2026-02-24 12:24:53 -05:00
bdffa5d8b3 add starship jj tools 2026-02-24 12:24:38 -05:00
2 changed files with 554 additions and 1 deletions

View file

@ -6,6 +6,8 @@ $username\
$directory\
$git_branch\
$git_status\
${custom.jj}\
${custom.git_status}\
$fill\
$c\
$elixir\
@ -52,12 +54,13 @@ style = "fg:overlay"
symbol = " "
[git_branch]
disabled = true
format = "[](fg:overlay)[ $symbol $branch ]($style)[](fg:overlay) "
style = "bg:overlay fg:foam"
symbol = ""
[git_status]
disabled = false
disabled = true
style = "bg:overlay fg:love"
format = '[](fg:overlay)([$all_status$ahead_behind]($style))[](fg:overlay) '
up_to_date = '[ ✓ ](bg:overlay fg:iris)'
@ -71,6 +74,36 @@ ahead = '[⇡\(${count}\)](bg:overlay fg:foam)'
diverged = '⇕[\[](bg:overlay fg:iris)[⇡\(${ahead_count}\)](bg:overlay fg:foam)[⇣\(${behind_count}\)](bg:overlay fg:rose)[\]](bg:overlay fg:iris)'
behind = '[⇣\(${count}\)](bg:overlay fg:rose)'
[custom.jj]
command = 'jj-starship --git-symbol "" --no-git-status | sed "s/\x1b\[0m//g"'
when = "jj-starship detect"
shell = ["sh"]
format = "[](fg:overlay)[[ $output ](bg:overlay)]($style)[](fg:overlay) "
style = "bg:overlay fg:rose"
[custom.git_status]
command = '''
git status --porcelain | awk '
/^[MARC ][MD]/ || /^[MARC][MARC ]/ { modified++ }
/^\?\?/ { untracked++ }
/^[D ]D/ || /^D/ { deleted++ }
END {
if (modified + untracked + deleted == 0) {
printf "\033[38;2;196;167;231m✓"
} else {
if (modified) printf "\033[38;2;246;193;119m%d ", modified
if (untracked) printf "\033[38;2;246;193;119m%d ", untracked
if (deleted) printf "\033[38;2;235;111;146m󰆴%d ", deleted
}
}
'
'''
when = 'test -d .git && ! test -d .jj'
shell = ["sh"]
format = "[](fg:overlay)[[ $output ](bg:overlay)]($style)[](fg:overlay) "
style = "bg:overlay fg:love"
[time]
disabled = false
format = " [](fg:overlay)[ $time 󰴈 ]($style)[](fg:overlay)"

520
starship.log Normal file

File diff suppressed because one or more lines are too long