Add sandbox directory color to fresh_line_one
This commit is contained in:
parent
7bb6a459ee
commit
31d06e0f19
@ -61,7 +61,9 @@ fresh_line_one() {
|
|||||||
|
|
||||||
# Construct the time and directory portions of the prompt
|
# Construct the time and directory portions of the prompt
|
||||||
local time_stamp="%{%F{244}%}%D{%H:%M:%S}%{%f%}"
|
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
|
# Check we are in a git repository
|
||||||
if `git rev-parse --git-dir > /dev/null 2>&1`; then
|
if `git rev-parse --git-dir > /dev/null 2>&1`; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user