.zsh/functions/prompt

This commit is contained in:
Tom Willemsen 2012-02-11 10:43:41 +01:00
parent da4f346c67
commit 107b6ff0af

View file

@ -4,11 +4,6 @@ local pac_cnt=$(get_cnt updates)
local aur_cnt=$(get_cnt aur)
local hostname=$(hostname | cut -d . -f 1)
printf "%s " \
"%B%(?.%{${fg[green]}%}^_^.%{${fg[red]}%}T_T)%b%{${fg[default]}%}"
line 4 15
printf " %s " "$(date +%Y%m%d%H.%M)"
if [ $pac_cnt -gt 0 -o $aur_cnt -gt 0 ]; then
printf "%s%d%s/%s%d%s:" \
"%{${fg[cyan]}%}" $pac_cnt "%{${fg[default]}%}" \