55 lines
1.1 KiB
TOML
55 lines
1.1 KiB
TOML
# 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
|
||
|
||
format = """
|
||
$username\
|
||
$hostname\
|
||
$directory\
|
||
${custom.dcontrol}\
|
||
$all
|
||
"""
|
||
|
||
# Replace the '❯' symbol in the prompt with '➜'
|
||
[character] # The name of the module we are configuring is 'character'
|
||
success_symbol = '[\$](bold green)' # The 'success_symbol' segment is being set to '➜' with the color 'bold green'
|
||
error_symbol = '[\$](bold red)'
|
||
|
||
[cmd_duration]
|
||
disabled = true
|
||
|
||
[custom.dcontrol]
|
||
format='[\[$symbol $output\]]($style) '
|
||
command = "echo $DOCKER_HOST"
|
||
symbol=' '
|
||
style="bold red"
|
||
when = '[ "$DOCKER_HOST" != "" ]'
|
||
|
||
[directory]
|
||
truncation_length = 0
|
||
format = '[$path]($style)[$read_only]($read_only_style)\] '
|
||
|
||
[git_branch]
|
||
format = '[\[$symbol $branch\]]($style) '
|
||
symbol = ' '
|
||
|
||
[golang]
|
||
format = '[$symbol]($style)'
|
||
|
||
[hostname]
|
||
format = '[@$hostname$ssh_symbol:]($style)'
|
||
style = 'yellow'
|
||
ssh_only = false
|
||
|
||
[package]
|
||
disabled = true
|
||
|
||
[ruby]
|
||
format = '[$symbol]($style)'
|
||
|
||
[username]
|
||
format = '\[[$user]($style)'
|
||
style_user = 'yellow'
|
||
show_always = true
|