This file contains hidden or 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
#!/bin/zsh | |
git-status-counts() { | |
local -A counts=( | |
'STAGED' 0 # staged changes | |
'CHANGED' 0 # unstaged changes | |
'UNTRACKED' 0 # untracked files | |
'BEHIND' 0 # commits behind | |
'AHEAD' 0 # commits ahead | |
'DIVERGED' 0 # commits diverged |