Skip to content

Instantly share code, notes, and snippets.

@imabug
Created October 21, 2024 22:21
Show Gist options
  • Select an option

  • Save imabug/544e3e1a9ff7a192b8ec1c1c3dca8fb7 to your computer and use it in GitHub Desktop.

Select an option

Save imabug/544e3e1a9ff7a192b8ec1c1c3dca8fb7 to your computer and use it in GitHub Desktop.
starship.toml
# Don't print a new line at the start of the prompt
add_newline = false
[c]
format = '\[[$symbol($version(-$name))]($style)\]'
symbol = " "
[character]
error_symbol = "[✖](bold red)"
[cmake]
format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
format = '\[[⏱ $duration]($style)\]'
min_time = 5_000
[directory]
fish_style_pwd_dir_length = 1
truncation_length = 4
truncation_symbol = '…/'
[hostname]
ssh_only = false
format = "on [$hostname](bold) "
[memory_usage]
#show_percentage = true
#show_swap = false
threshold = 50
disabled = false
style = "bold dimmed green"
format = '\[$symbol[$ram( | $swap)]($style)\]'
[git_branch]
format = '\[[$symbol$branch]($style)\]'
truncation_length = 5
symbol = " "
[git_commit]
commit_hash_length = 8
tag_symbol = '🔖 '
[git_status]
format = '([\[$all_status$ahead_behind\]]($style))'
conflicted = '🏳'
ahead = '⇡${count}'
diverged = '⇕⇡${ahead_count}⇣${behind_count}'
behind = '⇣${count}'
up_to_date = '✓'
untracked = '🤷'
stashed = '📦'
modified = '📝'
staged = '[++\($count\)](green)'
renamed = '👅'
deleted = '🗑'
[golang]
format = '\[[$symbol($version)]($style)\]'
symbol = "🐹 "
[java]
format = '\[[$symbol($version)]($style)\]'
symbol = " "
[julia]
format = '\[[$symbol($version)]($style)\]'
symbol = " "
[perl]
format = '\[[$symbol($version)]($style)\]'
[php]
format = '\[[$symbol($version)]($style)\]'
symbol = "🐘 "
[python]
format = '\[[${symbol}${pyenv_prefix}(${version})(\($virtualenv\))]($style)\]'
symbol = " "
[rlang]
symbol = "󰟔 "
format = '\[[$symbol($version)]($style)\]'
[rust]
format = '\[[$symbol($version)]($style)\]'
[sudo]
format = '\[[as $symbol]($style)\]'
[time]
disabled = true
format = "🕙[ %T %F ]"
utc_time_offset = -5
[username]
show_always = true
format = "[$user]($style) "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment