Created
August 18, 2025 19:09
-
-
Save kthompson/dd6b1f8cbafe7bdb14bab87c81bbe4df to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get editor completions based on the config schema | |
"$schema" = 'https://starship.rs/config-schema.json' | |
# Inserts a blank line between shell prompts | |
add_newline = true | |
# custom module for jj status | |
[custom.jj] | |
description = "The current jj status" | |
detect_folders = [".jj"] | |
ignore_timeout = true | |
symbol = "π₯ " | |
# command = "echo hi" | |
command = "jj log --revisions `@ --limit 1 --ignore-working-copy --no-graph --color always --template 'separate(\" \", bookmarks.join(\" \"), if(conflict, \"π₯\"), if(divergent, \"π§\"), if(hidden, \"π»\"), if(empty, \"(empty)\"), change_id.shortest(8))'" | |
# https://jj-vcs.github.io/jj/latest/templates/ | |
# separate(\" \", | |
# bookmarks.map(|x| x.name()).join(\" \"), | |
# tags.map(|x| x.name()).join(\" \"), | |
# surround(\"\\\"\", \"\\\"\", truncate_end(24, description.first_line(), \"β¦\")), | |
# if(conflict, \"π₯\"), | |
# if(divergent, \"π§\"), | |
# if(hidden, \"π»\")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment