From 3d6e960bd9d586e8704cfc8cd2fe48a3027c82ab Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 6 Mar 2022 01:07:00 +0100 Subject: [PATCH] zsh: add prompt color for devshell --- config/zsh/prompt.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/zsh/prompt.zsh b/config/zsh/prompt.zsh index 1a7b7b4..71ef37b 100644 --- a/config/zsh/prompt.zsh +++ b/config/zsh/prompt.zsh @@ -12,7 +12,9 @@ delta_prompt_symbol() { if [[ "$1" -eq 0 ]]; then local symbol_color - if [[ -n "$IN_NIX3_SHELL" || -n "$IN_NIX_SHELL" ]]; then + if [[ -n "$DEVSHELL_DIR" ]]; then + symbol_color=214 + elif [[ -n "$IN_NIX3_SHELL" || -n "$IN_NIX_SHELL" ]]; then symbol_color=blue else symbol_color=red