Auto-sync from catchthesethighs

This commit is contained in:
adlee-was-taken
2025-12-20 23:05:46 -05:00
parent 88ff7e6c6f
commit 54e243feaa
2 changed files with 6 additions and 2 deletions

View File

@@ -312,7 +312,6 @@ _background_tasks() {
# Check number of available updates and export. # Check number of available updates and export.
export UPDATE_PKG_COUNT=$(checkupdates | wc -l) export UPDATE_PKG_COUNT=$(checkupdates | wc -l)
} }
# ============================================================================ # ============================================================================

View File

@@ -76,8 +76,13 @@ _adlee_format_elapsed_time() {
_adlee_build_prompt() { _adlee_build_prompt() {
# %(#.TRUE.FALSE) - red for root, blue for users # %(#.TRUE.FALSE) - red for root, blue for users
if [[ -n $var && $var -gt 0 ]];then
PROMPT='%{$FG[239]%}┌[%{$FG[118]%}%n@%m%{$reset_color$FG[239]%}]─[%{$FG[179]%}%~%{$reset_color$FG[239]%}$(git_prompt_info)%{$FG[239]%}]─[%{$FG[179]%}↟${UPDATE_PKG_COUNT}%{$reset_color$FG[239]%}]
%{$FG[239]%}└%{$FX[bold]%}%(#.%{$FG[196]%}.%{$FG[069]%})%#%{$reset_color%} '
else
PROMPT='%{$FG[239]%}┌[%{$FG[118]%}%n@%m%{$reset_color$FG[239]%}]─[%{$FG[179]%}%~%{$reset_color$FG[239]%}$(git_prompt_info)%{$FG[239]%}] PROMPT='%{$FG[239]%}┌[%{$FG[118]%}%n@%m%{$reset_color$FG[239]%}]─[%{$FG[179]%}%~%{$reset_color$FG[239]%}$(git_prompt_info)%{$FG[239]%}]
%{$FG[239]%}└%{$FX[bold]%}%(#.%{$FG[196]%}.%{$FG[069]%})%#%{$reset_color%} ' %{$FG[239]%}└%{$FX[bold]%}%(#.%{$FG[196]%}.%{$FG[069]%})%#%{$reset_color%} '
fi
} }
# ============================================================================ # ============================================================================