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