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]}%}"