dotfiles/terminal/.config/starship.toml
Marty Oehme e44baaf207
terminal: Add bash shell indicator to starship prompt
So we know that we are not in a zsh shell currently.
2025-09-05 09:11:07 +02:00

90 lines
1.6 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\
$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)"
[custom.shell_bash_indicator]
command = 'echo 󱆃'
when = ''' test "$0" = "/usr/bin/bash" '''
# 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