Add sandbox directory color to fresh_line_one

This commit is contained in:
Kenneth Benzie 2018-08-26 15:37:30 +01:00
parent 7bb6a459ee
commit 31d06e0f19

View File

@ -61,6 +61,8 @@ fresh_line_one() {
# Construct the time and directory portions of the prompt
local time_stamp="%{%F{244}%}%D{%H:%M:%S}%{%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