Skip to content

Instantly share code, notes, and snippets.

@himanshu-dixit
Created November 27, 2022 06:56
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 himanshu-dixit/68145333285c4eec0a13231216a4cab3 to your computer and use it in GitHub Desktop.
Save himanshu-dixit/68145333285c4eec0a13231216a4cab3 to your computer and use it in GitHub Desktop.
# ~/.config/starship.toml
[battery]
full_symbol = "๐Ÿ”‹"
charging_symbol = "๐Ÿ”Œ"
discharging_symbol = "โšก"
[[battery.display]]
threshold = 20
style = "bold red"
[character]
error_symbol = "[โœ–](bold red) "
[cmd_duration]
min_time = 10_000 # Show command duration over 10,000 milliseconds (=10 sec)
format = " took [$duration]($style)"
[directory]
truncation_length = 1
format = "[$path]($style)[$lock_symbol]($lock_style) "
style = "bold blue"
[git_branch]
symbol = "๐Ÿงฑ "
style = "bold purple"
[git_commit]
commit_hash_length = 8
style = "bold white"
[git_state]
format = '[\($state( $progress_current of $progress_total)\)]($style) '
[git_status]
conflicted = "โš”๏ธ "
ahead = "๐ŸŽ๏ธ ๐Ÿ’จ ร—${count}"
behind = "๐Ÿข ร—${count}"
diverged = "๐Ÿ”ฑ ๐ŸŽ๏ธ ๐Ÿ’จ ร—${ahead_count} ๐Ÿข ร—${behind_count}"
untracked = "๐Ÿ›ค๏ธ ร—${count}"
stashed = ""
modified = "๐Ÿ“ ร—${count}"
staged = "๐Ÿ—ƒ๏ธ ร—${count}"
renamed = "๐Ÿ“› ร—${count}"
deleted = "๐Ÿ—‘๏ธ ร—${count}"
style = "bright-white "
format = "$all_status$ahead_behind"
[hostname]
ssh_only = false
format = "<[$hostname]($style)>"
trim_at = "-"
style = "bold dimmed white"
disabled = true
[julia]
format = "[$symbol$version]($style) "
symbol = "เฎƒ "
style = "bold green"
[memory_usage]
format = "$symbol[${ram}]($style) "
threshold = 90
style = "bold dimmed white"
disabled = false
[package]
disabled = true
[python]
format = "[$symbol$version]($style) "
style = "bold green"
[rust]
format = "[$symbol$version]($style) "
style = "bold green"
[time]
time_format = "%T"
format = "๐Ÿ•™ $time($style) "
style = "bright-white"
disabled = true
[username]
style_user = "bold dimmed blue"
show_always = false
[nodejs]
format = " | [${symbol}$version](dimmed green) "
version_format="${major}"
[custom.foo]
command = "echo crusher.dev" # shows output of command
detect_folders = [".crusher"] # can specify filters but wildcards are not supported
when = """ test "$HOME" = "$PWD" """
format = "| ๐Ÿฆ– [$output](dimmed white)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment