Added little single-character displays at the front of the prompt if we are in a shell different from zsh to remind myself (since they all look exactly the same with starship).
94 lines
1.7 KiB
TOML
94 lines
1.7 KiB
TOML
# 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 "$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
|