From 5eb355e5a062bb4e56a0a44073bfce38bf4dfc3f Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Sun, 21 Jun 2020 05:10:56 +0000
Subject: [PATCH] coloured $ according to return status

---
 zsh/.zshrc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/zsh/.zshrc b/zsh/.zshrc
index ef4af02..fddd9f9 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -1,6 +1,6 @@
 # Enable colors and change prompt
 autoload -U colors && colors	# Load colors
-PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%1~%{$fg[red]%}]%{$reset_color%}$%b "
+PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%1~%{$fg[red]%}]%(?:%{$fg[white]%}$:%{$fs_bold[red]%}$)%{$reset_color%}%b "
 
 # History files
 HISTFILE=~/.zsh_history

--
Gitblit v1.9.3