Skip to content

Instantly share code, notes, and snippets.

@kyxap1
Created March 19, 2022 20:20
Show Gist options
  • Save kyxap1/6c9cd8e0de01a331f886caeb74b641a3 to your computer and use it in GitHub Desktop.
Save kyxap1/6c9cd8e0de01a331f886caeb74b641a3 to your computer and use it in GitHub Desktop.
format = """
$username\
@\
$hostname\
$directory\
${custom.git_current_branch}\
$git_branch\
$git_state\
$git_status\
$aws\
$jobs\
$docker_context\
$cmd_duration\
$line_break\
$terraform\
$vagrant\
$character"""
[character]
[username]
format = "[$user]($style)"
show_always = true
style_user = "green"
[hostname]
format = '([$hostname\(w\)]($style) )'
ssh_only = false
style = "green"
[package]
disabled = true
[directory]
style = "bold bright-blue"
[aws]
format = '([$symbol ($profile)\(($region)\)]($style) )'
#symbol = "   ﴤ ﳐ ﴥ 﫷ﮟ  ﮈ       "
symbol = ""
style = "bold bright-black"
[aws.region_aliases]
ap-southeast-2 = "au"
us-east-1 = "us"
us-gov-east-1 = "gov1"
us-gov-west-1 = "gov2"
[terraform]
format = "([$symbol$workspace]($style) )"
style = "#844FBA"
detect_extensions = []
symbol = ""
[git_branch]
symbol = ""
format = '([$symbol $branch]($style) )'
style = "#60DEA9"
[custom.git_current_branch]
symbol = ""
format = "([$output]($style) $symbol )"
description = "Shows git branch during rebase"
command = """
FILE="$(git rev-parse --git-path 'rebase-merge/head-name')"
test -s $FILE && BRANCH=$( < $(git rev-parse --git-path 'rebase-merge/head-name'))
test ! -z $BRANCH && echo ${BRANCH##refs/heads/}"""
when = """git rev-parse --is-inside-work-tree 2> /dev/null"""
style = "#60DEA9"
[git_status]
format = '[[(*$conflicted$modified$staged$renamed$deleted )](bright-red)($ahead_behind$stashed )]($style)'
ahead = "⇡${count}"
diverged = "⇕⇡${ahead_count}⇣${behind_count}"
behind = "⇣${count}"
style = "#EC585D"
[git_state]
format = '\([$state($progress_current/$progress_total)]($style)\)'
style = "bold bright-black"
[cmd_duration]
format = "([$duration]($style) )"
style = "white"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment