Compare commits
No commits in common. "c2dbe66d9ddc1a793821967a9ae28a7d16671055" and "2f2af2e0c0dc51f2706141249f1bd6ff55e54d3d" have entirely different histories.
c2dbe66d9d
...
2f2af2e0c0
2 changed files with 2 additions and 8 deletions
10
gis
10
gis
|
|
@ -230,13 +230,7 @@ for dir in "${git_dirs[@]}"; do
|
|||
|
||||
# Construct key output
|
||||
if [[ "$status_keys" ]]; then
|
||||
if [[ "$status_keys" == "\$" ]]; then
|
||||
# Only stash symbol: yellow brackets and symbol
|
||||
status_keys="${text_bold}${text_yellow}[${status_keys}]${text_reset}"
|
||||
else
|
||||
# Mixed status: only $ yellow, rest red
|
||||
status_keys="${text_bold}${text_red}[${status_keys//\$/${text_yellow}\$${text_red}}]${text_reset}"
|
||||
fi
|
||||
status_keys="${text_bold}${text_red}[${status_keys}]${text_reset}"
|
||||
else
|
||||
status_keys="${text_bold}${text_green}[✓]${text_reset}"
|
||||
fi
|
||||
|
|
@ -267,7 +261,7 @@ done
|
|||
# Print keys
|
||||
if [[ "$all_status_keys" ]]; then
|
||||
echo "${text_bold}Status${text_reset}"
|
||||
[[ "$all_status_keys" == *"\$"* ]] && echo " ${text_bold}${text_yellow}\$${text_reset} - Dirty stash"
|
||||
[[ "$all_status_keys" == *"\$"* ]] && echo " ${text_bold}${text_red}\$${text_reset} - Dirty stash"
|
||||
[[ "$all_status_keys" == *"?"* ]] && echo " ${text_bold}${text_red}?${text_reset} - Untracked files"
|
||||
[[ "$all_status_keys" == *"!"* ]] && echo " ${text_bold}${text_red}!${text_reset} - Local changes"
|
||||
[[ "$all_status_keys" == *"+"* ]] && echo " ${text_bold}${text_red}+${text_reset} - Staged changes"
|
||||
|
|
|
|||
0
gis_completion.bash
Executable file → Normal file
0
gis_completion.bash
Executable file → Normal file
Loading…
Add table
Add a link
Reference in a new issue