zsh: add prompt color for devshell

This commit is contained in:
Max Headroom 2022-03-06 01:07:00 +01:00
parent 0c0312a5c3
commit 3d6e960bd9

View file

@ -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