From 7ddb26b590b7a752fa7c1778231bba6ff27e1320 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sat, 11 Feb 2012 10:40:10 +0100 Subject: .zsh/functions/prompt --- .zsh/functions/prompt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.zsh/functions') diff --git a/.zsh/functions/prompt b/.zsh/functions/prompt index a474679..32b7cd4 100644 --- a/.zsh/functions/prompt +++ b/.zsh/functions/prompt @@ -17,4 +17,5 @@ fi printf '%s %s%s%s:%s%s%s ' \ "%{${fg[magenta]}%}" $hostname "%{${fg[default]}%}" \ - "%{${fg[green]}%}" "%~" "%{${fg[default]}%}" + "%(?.%{${fg[green]}%}.%{${fg[red]}%})" "%~" \ + "%{${fg[default]}%}" -- cgit v1.2.3-54-g00ecf From 297d692457ac46bb350fd73ecd576f01043fcd68 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sat, 11 Feb 2012 10:40:14 +0100 Subject: .zsh/functions/prompt --- .zsh/functions/prompt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '.zsh/functions') diff --git a/.zsh/functions/prompt b/.zsh/functions/prompt index 32b7cd4..9b17c46 100644 --- a/.zsh/functions/prompt +++ b/.zsh/functions/prompt @@ -17,5 +17,4 @@ fi printf '%s %s%s%s:%s%s%s ' \ "%{${fg[magenta]}%}" $hostname "%{${fg[default]}%}" \ - "%(?.%{${fg[green]}%}.%{${fg[red]}%})" "%~" \ - "%{${fg[default]}%}" + "%(?.%{${fg[green]}%}.%{${fg[red]}%})" "%~" "%{${fg[default]}%}" -- cgit v1.2.3-54-g00ecf From 14b420c99e9d864a70d3df9b4c14c5df81596d1d Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sat, 11 Feb 2012 10:42:36 +0100 Subject: .zsh/functions/prompt --- .zsh/functions/prompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.zsh/functions') diff --git a/.zsh/functions/prompt b/.zsh/functions/prompt index 9b17c46..6af344e 100644 --- a/.zsh/functions/prompt +++ b/.zsh/functions/prompt @@ -15,6 +15,6 @@ 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 ' \ +printf '%s %s%s:%s%s%s%s ' \ "%{${fg[magenta]}%}" $hostname "%{${fg[default]}%}" \ "%(?.%{${fg[green]}%}.%{${fg[red]}%})" "%~" "%{${fg[default]}%}" -- cgit v1.2.3-54-g00ecf From da4f346c67d66d9fae593c6bce1eec57712b9a0c Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sat, 11 Feb 2012 10:43:19 +0100 Subject: .zsh/functions/prompt --- .zsh/functions/prompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.zsh/functions') diff --git a/.zsh/functions/prompt b/.zsh/functions/prompt index 6af344e..9b96699 100644 --- a/.zsh/functions/prompt +++ b/.zsh/functions/prompt @@ -15,6 +15,6 @@ 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 ' \ +printf '%s%s%s:%s%s%s%s ' \ "%{${fg[magenta]}%}" $hostname "%{${fg[default]}%}" \ "%(?.%{${fg[green]}%}.%{${fg[red]}%})" "%~" "%{${fg[default]}%}" -- cgit v1.2.3-54-g00ecf From 107b6ff0aff6d8843183a5ac5d439de9bdf547d2 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sat, 11 Feb 2012 10:43:41 +0100 Subject: .zsh/functions/prompt --- .zsh/functions/prompt | 5 ----- 1 file changed, 5 deletions(-) (limited to '.zsh/functions') diff --git a/.zsh/functions/prompt b/.zsh/functions/prompt index 9b96699..6fe927b 100644 --- a/.zsh/functions/prompt +++ b/.zsh/functions/prompt @@ -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]}%}" \ -- cgit v1.2.3-54-g00ecf