This repository has been archived on 2026-11-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dotfiles/config/starship.toml
T
2026-07-26 11:45:34 +02:00

62 lines
1.3 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"$schema" = 'https://starship.rs/config-schema.json'
add_newline = false
format = """
$nix_shell\
$directory\
${custom.git}\
${custom.jj}\
$cmd_duration\
$line_break\
$character"""
[character]
success_symbol = "❯(yellow)"
error_symbol = "❯(yellow)"
[git_status]
disabled = true
[git_branch]
disabled = true
[custom.git]
when = "jj root >/dev/null 2>&1 && exit 1 || git rev-parse --is-inside-work-tree >/dev/null 2>&1"
command = "starship module git_branch && starship module git_status"
shell = ["sh", "--norc", "--noprofile"]
style = "bold purple"
[custom.jj]
description = "The current jj status"
when = "jj root >/dev/null 2>&1"
symbol = " "
style = "bold blue"
shell = ["sh", "--norc", "--noprofile"]
command = '''
jj log --revisions @ --no-graph --ignore-working-copy --color always --limit 1 --template '
separate(" ",
change_id.shortest(4),
bookmarks,
"|",
concat(
if(conflict, "💥"),
if(divergent, "🚧"),
if(hidden, "👻"),
if(immutable, "🔒"),
),
raw_escape_sequence("\x1b[1;32m") ++ if(empty, "(empty)"),
raw_escape_sequence("\x1b[1;32m") ++ coalesce(
truncate_end(29, description.first_line(), "…"),
"(no description set)",
) ++ raw_escape_sequence("\x1b[0m"),
)
'
'''
[directory]
truncation_length = 4
style = "bold cyan"