2012-01-11 21:26:00 +01:00
|
|
|
# -*- mode: shell-script; eval: (git-auto-commit-mode 1) -*-
|
2012-01-06 16:02:15 +01:00
|
|
|
|
|
|
|
local pac_cnt=$(get_cnt updates)
|
|
|
|
local aur_cnt=$(get_cnt aur)
|
|
|
|
local hostname=$(hostname | cut -d . -f 1)
|
|
|
|
|
2012-01-11 22:12:01 +01:00
|
|
|
printf "%s " \
|
2012-01-11 22:10:41 +01:00
|
|
|
"%B%(?.%{${fg[green]}%}^_^.%{${fg[red]}%}T_T)%b%{${fg[default]}%}"
|
|
|
|
line 4 15
|
2012-01-11 22:12:01 +01:00
|
|
|
printf " %s " "$(date +%Y%m%d%H.%M)"
|
2012-01-11 21:35:40 +01:00
|
|
|
|
2012-01-06 16:02:15 +01:00
|
|
|
if [ $pac_cnt -gt 0 -o $aur_cnt -gt 0 ]; then
|
|
|
|
printf "%s%d%s/%s%d%s:" \
|
|
|
|
"%{${fg[cyan]}%}" $pac_cnt "%{${fg[default]}%}" \
|
|
|
|
"%{${fg[cyan]}%}" $aur_cnt "%{${fg[default]}%}"
|
|
|
|
fi
|
|
|
|
|
2012-01-11 21:27:37 +01:00
|
|
|
printf '%s %s%s%s:%s%s%s ' \
|
2012-01-06 16:02:15 +01:00
|
|
|
"%{${fg[magenta]}%}" $hostname "%{${fg[default]}%}" \
|
2012-02-11 10:40:14 +01:00
|
|
|
"%(?.%{${fg[green]}%}.%{${fg[red]}%})" "%~" "%{${fg[default]}%}"
|