From 31d06e0f196d00761a4765729a5df45c48b1b128 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sun, 26 Aug 2018 15:37:30 +0100 Subject: [PATCH] Add sandbox directory color to fresh_line_one --- prompt_fresh_setup | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prompt_fresh_setup b/prompt_fresh_setup index 1cc5a41..3c863b1 100644 --- a/prompt_fresh_setup +++ b/prompt_fresh_setup @@ -61,7 +61,9 @@ fresh_line_one() { # Construct the time and directory portions of the prompt local time_stamp="%{%F{244}%}%D{%H:%M:%S}%{%f%}" - local directory="%{%F{37}%}%~%{%f%}" + [[ -n $SANDBOX_HOME ]] && \ + local directory="%{%F{3}%}$SANDBOX_NAME${PWD#$SANDBOX_HOME}%{%f%}" || \ + local directory="%{%F{37}%}%~%{%f%}" # Check we are in a git repository if `git rev-parse --git-dir > /dev/null 2>&1`; then