From 8af2a60b74493f593153369055f23b792b401647 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Wed, 11 Jan 2012 21:26:00 +0100 Subject: [PATCH] .zsh/functions/prompt --- .zsh/functions/prompt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.zsh/functions/prompt b/.zsh/functions/prompt index af15976..8b87b55 100644 --- a/.zsh/functions/prompt +++ b/.zsh/functions/prompt @@ -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]}%}"