Skip to content

Instantly share code, notes, and snippets.

@CAESIUS-TIM
Last active January 10, 2024 08:37
Show Gist options
  • Save CAESIUS-TIM/1375a7114911b241e94ae88958684cb1 to your computer and use it in GitHub Desktop.
Save CAESIUS-TIM/1375a7114911b241e94ae88958684cb1 to your computer and use it in GitHub Desktop.
Personal starship configuration
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
format = """$os$directory$character"""
right_format = """$all$localip$cmd_duration"""
[battery]
full_symbol = '🔋 '
charging_symbol = '⚡️ '
discharging_symbol = '💀 '
[[battery.display]] # 'bold red' style and discharging_symbol when capacity is between 0% and 10%
threshold = 10
style = 'bold red'
[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
discharging_symbol = '💦 '
[directory]
read_only = ' 🔒'
[character]
error_symbol = "[❯](blink bold red)"
[os]
disabled = false
[memory_usage]
disabled = false
threshold = -1
symbol = '🐏 '
style = 'bold dimmed purple'
[localip]
ssh_only = false
format = '@ [$localipv4](bold dimmed red) '
disabled = false
[sudo]
disabled = false
# [custom.foo]
# command = 'echo foo' # shows output of command
# detect_files = ['foo'] # can specify filters but wildcards are not supported
# when = ''' test "$HOME" = "$PWD" '''
# format = ' transcending [$output]($style)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment