Skip to content

Instantly share code, notes, and snippets.

@csnagu
Created February 14, 2024 00:03
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 csnagu/0588f9b1ffdf57b4ea66b258ee99e982 to your computer and use it in GitHub Desktop.
Save csnagu/0588f9b1ffdf57b4ea66b258ee99e982 to your computer and use it in GitHub Desktop.
format = """
$username\
$hostname\
$directory\
$git_branch\
$git_state\
$git_status\
$cmd_duration\
$line_break\
$python\
$character"""
[username]
format = "[$user]($style)"
style_user = "bold blue"
[hostname]
format = "[@$hostname]($style)"
style = "bold blue"
[directory]
format = "[:$path]($style)[$read_only]($read_only_style) "
style = "#EA93F3"
truncate_to_repo = false
truncation_length = 0
[character]
success_symbol = "[❯](#6CEDF0)"
error_symbol = "[❯](red)"
vimcmd_symbol = "[❮](green)"
[git_branch]
format = '[git:\($branch\)]($style)'
style = "#C2F67C"
[git_status]
format = "$ahead_behind [[(*$conflicted$untracked$modified$staged$renamed$deleted)](218) ($ahead_behind$stashed)]($style)"
style = "cyan"
# conflicted = "​"
# untracked = ""
# modified = "​"
# staged = "​"
# renamed = "​"
# deleted = "​"
# stashed = "≡"
ahead = "⇡${count}"
diverged = "⇡${ahead_count}⇣${behind_count}"
behind = "⇣${count}"
modified = "[!${count}](green)"
untracked = "[?${count}](red)"
staged = "+${count}"
[git_state]
format = '\([$state( $progress_current/$progress_total)]($style)\) '
style = "red"
[cmd_duration]
format = "[$duration]($style) "
style = "yellow"
[python]
format = "[$virtualenv]($style) "
style = "bright-black"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment