From ac4c937a878a6967e99ad27a6cd8323a534780a9 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Wed, 11 Jan 2012 22:10:41 +0100 Subject: [PATCH] .zsh/functions/prompt --- .zsh/functions/prompt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.zsh/functions/prompt b/.zsh/functions/prompt index 91710d9..54bc73f 100644 --- a/.zsh/functions/prompt +++ b/.zsh/functions/prompt @@ -4,7 +4,10 @@ local pac_cnt=$(get_cnt updates) local aur_cnt=$(get_cnt aur) local hostname=$(hostname | cut -d . -f 1) -line $hostname "$(date +%Y%m%d%H.%M)" +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:" \ @@ -13,6 +16,5 @@ if [ $pac_cnt -gt 0 -o $aur_cnt -gt 0 ]; then fi printf '%s %s%s%s:%s%s%s ' \ - "%B%(?.%{${fg[green]}%}^_^.%{${fg[red]}%}T_T)%b%{${fg[default]}%}" \ "%{${fg[magenta]}%}" $hostname "%{${fg[default]}%}" \ "%{${fg[green]}%}" "%~" "%{${fg[default]}%}"