Skip to content

Instantly share code, notes, and snippets.

@minhazmiraz
Created September 5, 2023 07:42
Show Gist options
  • Save minhazmiraz/06fd33cb87cc98c9065476b99aab0e73 to your computer and use it in GitHub Desktop.
Save minhazmiraz/06fd33cb87cc98c9065476b99aab0e73 to your computer and use it in GitHub Desktop.
starship config file
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
format = '''$time$git_branch$git_commit$git_status$cmd_duration$nodejs
$directory$character'''
# Inserts a blank line between shell prompts
add_newline = true
# Replace the '❯' symbol in the prompt with '➜'
[character]
success_symbol = "[➜](bold green) "
error_symbol = "[✖](bold red) "
# Disable the package module, hiding it from the prompt completely
[package]
disabled = true
[battery]
disabled = true
full_symbol = "🔋"
charging_symbol = "🔌"
discharging_symbol = "⚡"
[[battery.display]]
threshold = 30
style = "bold red"
[cmd_duration]
min_time = 10_000
format = " took [$duration]($style)"
[directory]
truncation_length = 5
format = "[$path]($style)[$lock_symbol]($lock_style) "
truncation_symbol = "…/"
truncate_to_repo = false
[git_branch]
format = " [$symbol$branch]($style) "
symbol = "🌱 "
style = "bold yellow"
[git_commit]
commit_hash_length = 8
style = "bold white"
# Displays status of Git repository when in a directory of a Git repository.
[git_status]
format = "[$all_status$ahead_behind]($style)"
conflicted = "⚔️ "
ahead = "⇡ $count "
behind = "⇣ $count "
deleted = "🗑 $count "
diverged = "🔱 ⇡${ahead_count} ⇣${behind_count} "
stashed = "📦 $count "
modified = "פֿ $count "
staged = "🗃️ ${count} "
renamed = "📛${count} "
untracked = "🤷 ‍$count "
style = "bold red"
[time]
time_format = "%T"
format = "🕙 $time($style) "
style = "bright-white"
disabled = false
[username]
style_user = "bold dimmed blue"
show_always = false
[nodejs]
format = "via [🤖 $version](bold green) "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment