Last active
November 4, 2024 10:53
-
-
Save brunobord/5b4a4611fe45c4b7c6edd262fe9a03b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[git_status] | |
format = "($conflicted$staged$modified$renamed$deleted$untracked$stashed$ahead_behind(fg:$style))" | |
conflicted = "[✖ ](bg:52 fg:white)[ ${count} ](bg:52 fg:white)" | |
staged = "[ $count ](green)" | |
modified = "[✚ ${count} ](208)" | |
renamed = "[ ${count} ](148)" | |
deleted = "[ ${count} ](fg:#cb4b16)" | |
untracked = "[…${count} ](117)" | |
stashed = "[ ${count} ](bg:darkblue fg:yellow)" | |
ahead = "[ ${count} ](214)" | |
behind = "[ ${count} ](214)" | |
diverged = "[⇕ ](bold red)[ ${ahead_count} ](red)[ ${behind_count} ](red)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_newline = false | |
format = """$username@$hostname\ | |
$directory\ | |
$python\ | |
$git_branch\ | |
$git_commit\ | |
$git_state\ | |
$git_status\ | |
$jobs\ | |
$battery\ | |
$status\ | |
$character""" | |
[battery] | |
full_symbol = "🔋" | |
charging_symbol = "⚡️" | |
discharging_symbol = "❗" | |
[[battery.display]] | |
threshold = 15 | |
style = "bold red" | |
[directory] | |
truncation_length = 6 | |
truncate_to_repo = false | |
[hostname] | |
ssh_only = false | |
format = "[$hostname]($style) " | |
trim_at = "." | |
disabled = false | |
[username] | |
format = "[$user]($style)" | |
style_root = "bold red" | |
style_user = "bold dimmed green" | |
show_always = true | |
[python] | |
format = '[\[$virtualenv\]]($style) ' | |
style = 'bright-green' | |
detect_files = [] | |
detect_extensions = [] | |
[status] | |
disabled = false | |
symbol = '•' | |
[git_branch] | |
format = '[$branch]($style) ' | |
style = 'bold yellow' | |
[git_status] | |
format = '$all_status$ahead_behind' | |
ahead = '[⇡$count](bold purple) ' | |
behind = '[⇣$count](bold purple) ' | |
staged = '[✚ $count](green) ' | |
deleted = '[✖ $count](red) ' | |
renamed = '[➜ $count](purple) ' | |
stashed = '[✭ $count](cyan) ' | |
untracked = '[◼ $count](white) ' | |
modified = '[✱ $count](blue) ' | |
conflicted = '[═](bold red) ' | |
diverged = '⇕ [⇡$ahead_count⇣$behind_count](fg:11)' | |
up_to_date = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wtg() { | |
bold=$(tput bold) | |
blue=$(tput setaf 4) | |
purple=$(tput setaf 5) # not really purple, but… | |
green=$(tput setaf 2) | |
red=$(tput setaf 1) | |
cyan=$(tput setaf 6) | |
white=$(tput setaf 7) # not really white… | |
n=$(tput sgr0) | |
echo " ${bold}${purple}⇡${n} : ahead" | |
echo " ${bold}${purple}⇣${n} : behind" | |
echo " ${green}✚${n} : staged" | |
echo " ${red}✖${n} : deleted" | |
echo " ${purple}➜${n} : renamed" | |
echo " ${cyan}✭${n} : stashed" | |
echo " ${white}◼${n} : untracked" | |
echo " ${blue}✱${n} : modified" | |
echo " ${bold}${red}═${n} : conflicted" | |
echo " ⇕ : diverged" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment