Auto-sync from catchthesethighs
This commit is contained in:
@@ -312,7 +312,6 @@ _background_tasks() {
|
||||
# Check number of available updates and export.
|
||||
export UPDATE_PKG_COUNT=$(checkupdates | wc -l)
|
||||
|
||||
|
||||
}
|
||||
|
||||
# ============================================================================
|
||||
|
||||
@@ -76,8 +76,13 @@ _adlee_format_elapsed_time() {
|
||||
|
||||
_adlee_build_prompt() {
|
||||
# %(#.TRUE.FALSE) - red for root, blue for users
|
||||
PROMPT='%{$FG[239]%}┌[%{$FG[118]%}%n@%m%{$reset_color$FG[239]%}]─[%{$FG[179]%}%~%{$reset_color$FG[239]%}$(git_prompt_info)%{$FG[239]%}]
|
||||
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]%}]
|
||||
%{$FG[239]%}└%{$FX[bold]%}%(#.%{$FG[196]%}.%{$FG[069]%})%#%{$reset_color%} '
|
||||
fi
|
||||
}
|
||||
|
||||
# ============================================================================
|
||||
|
||||
Reference in New Issue
Block a user