.zsh/functions/prompt

This commit is contained in:
Tom Willemsen 2012-01-11 21:26:00 +01:00
parent 31b40903a9
commit 8af2a60b74

View file

@ -1,4 +1,4 @@
# -*- mode: shell-script -*-
# -*- mode: shell-script; eval: (git-auto-commit-mode 1) -*-
local pac_cnt=$(get_cnt updates)
local aur_cnt=$(get_cnt aur)
@ -10,7 +10,7 @@ if [ $pac_cnt -gt 0 -o $aur_cnt -gt 0 ]; then
"%{${fg[cyan]}%}" $aur_cnt "%{${fg[default]}%}"
fi
printf '%s%s%s:%s%s%s%s>%s ' \
printf '%s%s%s%s%s:%s%s%s ' \
"%(?.%{${fg[green]}%}^_^.%{${fg[red]}%})%B" "%b%{${fg[default]}%}T_T" \
"%{${fg[magenta]}%}" $hostname "%{${fg[default]}%}" \
"%{${fg[green]}%}" "%~" "%{${fg[default]}%}" \
"%(?.%{${fg[green]}%}.%{${fg[red]}%})%B" "%b%{${fg[default]}%}"
"%{${fg[green]}%}" "%~" "%{${fg[default]}%}"