dotfiles/terminal/.config/starship.toml
Marty Oehme f514ebe008
starship: Enable terraform and typst modules
Explicitly enable terraform and typst version displays (if in directory
with terraform state files or .typ files for typst), and change the
symbol for the typst module to a feather (which is much nicer than the
plain 't' it would display otherwise).
2025-11-14 10:27:02 +01:00

103 lines
1.8 KiB
TOML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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.

# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
format = """
$sudo\
$custom\
$username\
$directory\
$git_state\
$git_status\
$status\
$character\
"""
right_format ="""
$cmd_duration\
$hostname\
$git_branch\
$fossil_branch\
$go\
$lua\
$nodejs\
$python\
$terraform\
$typst\
$package
"""
[directory]
style = "blue"
fish_style_pwd_dir_length = 1
read_only = " "
read_only_style = "purple"
[character]
success_symbol = "[](purple)"
error_symbol = "[](red)"
vimcmd_symbol = "[](green)"
[git_branch]
format = "[$branch]($style) "
style = "bright-black"
[git_status]
format = "[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218) ($ahead_behind$stashed)]($style) "
style = "cyan"
conflicted = ""
untracked = ""
modified = ""
staged = ""
renamed = ""
deleted = ""
stashed = "≡"
[git_state]
format = '\([$state( $progress_current/$progress_total)]($style)\) '
style = "bright-black"
[cmd_duration]
format = "[$duration]($style) "
style = "yellow"
[python]
format = "[$virtualenv]($style) "
style = "bright-black"
[fossil_branch]
[line_break]
disabled = true
[package]
symbol = ""
style = "blue"
[status]
disabled = false
symbol = " "
[sudo]
disabled = false
symbol = " 󱍔 "
style = 'bold yellow'
format = "[$symbol]($style)"
[terraform]
disabled = false
[typst]
disabled = false
symbol = '󰛓 '
[custom.shell_bash_indicator]
command = 'echo '
when = ' test "$STARSHIP_SHELL" = "bash" '
[custom.shell_nushell_indicator]
command = 'echo '
when = ' test $env.STARSHIP_SHELL "==" "nu" '
# TODO: Would be lovely to have jujutsu support here
# An example implementation: https://github.com/jj-vcs/jj/wiki/Starship
# But currently very slow. Can be added with e.g. '${custom.jj}\' in format above