๐Ÿ”’ Backup for my config files
dotfiles
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

hide git prompt when inside jujutsu repository

kacaii d8532d62 7d3032f0

+19 -24
+19 -24
.config/starship.toml
··· 17 17 18 18 # ๏‚ JJ Module ----------------------------------------------------------------- 19 19 20 + [git_status] 21 + disabled = true 22 + 23 + [git_commit] 24 + disabled = true 25 + 26 + [git_metrics] 27 + disabled = true 28 + 29 + [git_branch] 30 + disabled = true 31 + 20 32 [custom.jj] 21 33 description = "The current jj status" 22 - # when = "jj --ignore-working-copy root" 23 34 detect_folders = [".jj"] 24 - symbol = "๏‚ " 35 + symbol = "๓ฑ—† " 25 36 style = "blue" 26 37 command = ''' 27 38 jj log --revisions @ --no-graph --ignore-working-copy --color always --limit 1 --template ' 28 39 separate(" ", 29 - change_id.shortest(4), 40 + change_id.shortest(6), 30 41 bookmarks, 31 42 "|", 32 43 concat( ··· 37 48 ), 38 49 raw_escape_sequence("\x1b[1;90m") ++ if(empty, "(empty)"), 39 50 raw_escape_sequence("\x1b[1;0m") ++ coalesce( 40 - truncate_end(29, description.first_line(), "โ€ฆ"), 41 - "[...]", 51 + truncate_end(29, description.first_line(), "โ€ฆ"), "[...]", 42 52 ) 43 53 ) 44 54 ' 45 55 ''' 46 56 47 - [git_status] 48 - disabled = true 49 - 50 57 [custom.git_status] 51 - # when = "! jj --ignore-working-copy root" 52 - detect_folders = [".jj"] 58 + when = "! jj --ignore-working-copy root" 53 59 command = "starship module git_status" 54 60 style = "" 55 61 description = "Only show git_status if we're not in a jj repo" 56 62 57 - [git_commit] 58 - disabled = true 59 63 60 64 [custom.git_commit] 61 - # when = "! jj --ignore-working-copy root" 62 - detect_folders = [".jj"] 65 + when = "! jj --ignore-working-copy root" 63 66 command = "starship module git_commit" 64 67 style = "" 65 68 description = "Only show git_commit if we're not in a jj repo" 66 69 67 - [git_metrics] 68 - disabled = true 69 - 70 70 [custom.git_metrics] 71 - # when = "! jj --ignore-working-copy root" 72 - detect_folders = [".jj"] 71 + when = "! jj --ignore-working-copy root" 73 72 command = "starship module git_metrics" 74 73 description = "Only show git_metrics if we're not in a jj repo" 75 74 style = "" 76 75 77 - [git_branch] 78 - disabled = true 79 - 80 76 [custom.git_branch] 81 - # when = "! jj --ignore-working-copy root" 82 - detect_folders = [".jj"] 77 + when = "! jj --ignore-working-copy root" 83 78 command = "starship module git_branch" 84 79 description = "Only show git_branch if we're not in a jj repo" 85 80 style = ""