Skip to content

Instantly share code, notes, and snippets.

@kthompson
Created August 18, 2025 19:09
Show Gist options
  • Save kthompson/dd6b1f8cbafe7bdb14bab87c81bbe4df to your computer and use it in GitHub Desktop.
Save kthompson/dd6b1f8cbafe7bdb14bab87c81bbe4df to your computer and use it in GitHub Desktop.
# 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