Skip to content

Instantly share code, notes, and snippets.

@Fifan31
Last active November 26, 2023 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fifan31/ea1f38d0b07072cc9a829d28a5cae568 to your computer and use it in GitHub Desktop.
Save Fifan31/ea1f38d0b07072cc9a829d28a5cae568 to your computer and use it in GitHub Desktop.
# Configuration file for starship prompt
# see https://starship.rs/
# This file must be copied into ~/.config/starship.toml
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
# Inserts a blank line between shell prompt
add_newline = false
format = """
$username[@](white)$hostname\
$directory\
$git_branch\
$git_state\
$git_status\
$python\
$sudo\
$fill\
$cmd_duration\
$time\
$battery\
$line_break\
$character"""
[username]
show_always = true
style_user = "fg:blue"
style_root = "fg:blue bold"
format = '[$user]($style)'
disabled = false
[hostname]
ssh_only = false
format = '[$hostname:](red)'
disabled = false
[directory]
truncation_length = 0
truncation_symbol = ''
truncate_to_repo = false
[git_branch]
truncation_length = 999
truncation_symbol = ''
#always_show_remote = true
#symbol = '   🌱'
symbol = ' '
format = ' [\[$symbol$branch(:$remote_branch)\]]($style)'
[git_state]
format = '[\($state( $progress_current of $progress_total)\)]($style)'
cherry_pick = '[🍒 PICKING](bold red)'
[git_status]
conflicted = "⚔️ "
ahead = "🏎️💨×${count}"
behind = "🐢×${count}"
diverged = "🔱 🏎️💨×${ahead_count} 🐢×${behind_count}"
untracked = "🤷×${count}"
stashed = "📦 "
modified = "📝×${count}"
staged = "🗃️ ×${count}"
renamed = "📛×${count}"
deleted = "🗑️×${count}"
#up_to_date = ' '
style = "bright-white"
format = '\[$all_status$ahead_behind\]'
[python]
format = '[ \[${symbol}${pyenv_prefix}(${version} )(\($virtualenv\))\]]($style)'
symbol = '🐍'
[fill]
symbol = " "
[battery]
full_symbol = "🔋"
empty_symbol = "🪫"
charging_symbol = "🔌"
discharging_symbol = "⚡"
format = "[$symbol]($style)"
[[battery.display]]
threshold = 110
style = 'bold red'
[time]
disabled = false
format = '[\[🕙 $time \]]($style) '
time_format = '%T'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment