Skip to content

Instantly share code, notes, and snippets.

@tcmhoang
Last active February 27, 2022 04:12
Show Gist options
  • Save tcmhoang/c365992dd29746ccb9c5c1ac088f0a34 to your computer and use it in GitHub Desktop.
Save tcmhoang/c365992dd29746ccb9c5c1ac088f0a34 to your computer and use it in GitHub Desktop.
# Replace the "❯" symbol in the prompt with "➜"
[character]
# The name of the module we are configuring is "character"
success_symbol = "[➜](bold green)"
# The "symbol" segment is being set to "➜"
error_symbol = "[✗](bold red)"
vicmd_symbol = "[V](bold green) "
# Disable the package module, hiding it from the prompt completely
[package]
disabled = true
[battery]
full_symbol = "🔋"
charging_symbol = "🔌"
discharging_symbol = "⚡"
[[battery.display]] # "bold red" style when capacity is between 0% and 10%
threshold = 30
style = "bold red"
[[battery.display]] # "bold yellow" style when capacity is between 10% and 30%
threshold = 50
style = "bold yellow"
[[battery.display]]
threshold = 70
style = "bold blue"
[cmd_duration]
min_time = 10_000 # Show command duration over 10,000 milliseconds (=10 sec)
format = " took [$duration]($style)"
[directory]
truncation_length = 5
format = "[$path]($style)[$lock_symbol]($lock_style) "
[git_branch]
format = " [$symbol$branch]($style) "
symbol = "🌱 "
style = "bold yellow"
[git_commit]
commit_hash_length = 4
[git_state]
format = '[\($state( $progress_current of $progress_total)\)]($style) '
[git_status]
conflicted = "🏳"
ahead = "🏎💨"
behind = "😰"
diverged = "😵"
untracked = "🤷‍"
stashed = "📦"
modified = "📝"
staged = '[++\($count\)](green)'
renamed = "👅"
deleted = "🗑"
format = "$all_status$ahead_behind"
# hostname
[hostname]
ssh_only = false
prefix = "⟪"
suffix = "⟫"
trim_at = ".companyname.com"
disabled = true
[memory_usage]
format = "$symbol[${ram}( | ${swap})]($style) "
threshold = -1
style = "bold dimmed white"
disabled = false
[time]
time_format = "%T"
format = "🕙 $time($style) "
style = "bright-white"
disabled = false
[username]
style_user = "bold dimmed blue"
show_always = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment