Skip to content

Instantly share code, notes, and snippets.

@lawrencegripper
Last active November 1, 2020 20:52
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 lawrencegripper/0bd2a06d8fba9f9b6745e74c464a5266 to your computer and use it in GitHub Desktop.
Save lawrencegripper/0bd2a06d8fba9f9b6745e74c464a5266 to your computer and use it in GitHub Desktop.
# Which is equivalent to
format = """
$username\
$hostname\
$shlvl\
$kubernetes\
$directory\
$git_branch\
$git_commit\
$git_state\
$git_status\
$hg_branch\
$helm\
$terraform\
$memory_usage\
$env_var\
$cmd_duration\
$custom\
$line_break\
$jobs\
$battery\
$time\
$status\
$character"""
[jobs]
threshold = 1
format = "[$number]($style)"
[directory]
truncate_to_repo = false
[battery]
full_symbol = "πŸ”‹"
charging_symbol = "⚑️"
discharging_symbol = "πŸ’€"
[git_status]
format = "([$conflicted$stashed$deleted$renamed$modified$staged$untracked$ahead_behind]($style))"
ahead = " ⇑${count}"
diverged = " ⇕⇑${ahead_count} ⇣${behind_count}"
behind = " ⇣${count}"
modified = " [πŸ“${count}](blue)"
staged = " [πŸ”’${count}](green)"
renamed = " [πŸ’¨${count}](green)"
deleted = "[πŸ—‘${count}](red)"
untracked = " [πŸ€·β€${count}](red)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment