Files

98 lines
2.7 KiB
TOML

# ~/.config/starship.toml
# UltraViolet color scheme — https://github.com/Gurvirr/zed-ultraViolet
add_newline = false
command_timeout = 1000
format = """$os$username$hostname$kubernetes$directory$python$git_branch$git_status"""
# Drop ugly default prompt characters
[character]
success_symbol = ''
error_symbol = ''
# ---
[os]
format = '[$symbol](bold fg:#DCD8ED) '
disabled = false
[os.symbols]
Windows = ' '
Arch = '󰣇 '
Ubuntu = '󰕈 '
Macos = '󰀵 '
Debian = ' '
Alpine = ' '
# ---
# Shows the username
[username]
style_user = 'fg:#DCD8ED bold'
style_root = 'fg:#FF6FAE bold'
format = '[$user]($style) '
disabled = false
show_always = true
# Shows the hostname
[hostname]
ssh_only = false
format = 'on [$hostname](bold fg:#6F78FF) '
disabled = false
# Shows current directory
[directory]
truncation_length = 1
truncation_symbol = '…/'
home_symbol = '󰋜 ~'
read_only_style = 'fg:#FF6FAE'
read_only = ' 󰌾 '
format = 'at [$path](fg:#C58FFF)[$read_only]($read_only_style) '
# Shows current git branch
[git_branch]
symbol = '󰊢 '
format = 'via [$symbol$branch]($style)'
truncation_symbol = '…/'
style = 'bold fg:#6F78FF'
# Shows current git status
[git_status]
format = '([ \( $all_status$ahead_behind\)]($style) )'
style = 'bold fg:#6F78FF'
conflicted = '[󰽉 conflicted=${count}](fg:#FF6FAE) '
up_to_date = '[󰘽 up-to-date](fg:#6F78FF) '
untracked = '[󰋘 untracked=${count}](fg:#FF6FAE) '
ahead = '[󰜷 ahead=${count}](fg:#6F78FF) '
diverged = '[󰜷 ahead=${ahead_count} 󰜮 behind=${behind_count}](fg:#6F78FF) '
behind = '[󰜮 behind=${count}](fg:#6F78FF) '
stashed = '[󱀇 stashed=${count}](fg:#C58FFF) '
modified = '[󰷈 modified=${count}](fg:#E297DB) '
staged = '[󰐗 staged=${count}](fg:#6F78FF) '
renamed = '[󱍸 renamed=${count}](fg:#E297DB) '
deleted = '[󰍶 deleted=${count}](fg:#FF6FAE) '
# Shows kubernetes context and namespace
[kubernetes]
format = 'via [󱃾 $context\($namespace\)](bold fg:#6F78FF) '
disabled = false
# Shows current Python version and virtualenv
[python]
symbol = '󰌠 '
format = 'via [$symbol${version}( \($virtualenv\))]($style) '
style = 'bold fg:#E297DB'
pyenv_version_name = false
detect_extensions = ['py']
detect_files = ['.python-version', 'pyproject.toml', 'requirements.txt', 'setup.py', 'Pipfile']
# Shows if a ContainerLab topology file is present in the current directory
[custom.containerlab]
description = "Shows ContainerLab topology name when present"
command = 'grep -m1 "^name:" *.clab.y*ml 2>/dev/null | head -1 | cut -d: -f2 | xargs'
when = 'ls *.clab.yml *.clab.yaml 2>/dev/null | grep -q .'
symbol = '󰒍 '
format = 'via [$symbol($output)]($style) '
style = 'bold fg:#C58FFF'
shell = ['bash', '--noprofile', '--norc']