Update prompt to support Modular dev env

This commit is contained in:
2026-03-05 11:35:20 +00:00
parent 719ce5f992
commit 1f5b1d841b
2 changed files with 6 additions and 1 deletions

View File

@@ -190,6 +190,7 @@ _autoenv_snap_restore() {
unset "_autoenv_snap_pre_path[$dir]" "_autoenv_snap_pre_ps1[$dir]" \ unset "_autoenv_snap_pre_path[$dir]" "_autoenv_snap_pre_ps1[$dir]" \
"_autoenv_snap_diff_funcs[$dir]" "_autoenv_snap_diff_aliases[$dir]" \ "_autoenv_snap_diff_funcs[$dir]" "_autoenv_snap_diff_aliases[$dir]" \
"_autoenv_snap_diff_env[$dir]" "_autoenv_snap_diff_env[$dir]"
prompt "${prompt_theme[@]}"
} }
# Load zstat from stat module for inspecting modified time. # Load zstat from stat module for inspecting modified time.

View File

@@ -144,8 +144,12 @@ fresh_line_one() {
local docker=" %{%F{6}%}$DOCKER_MACHINE_NAME%{%f%}" local docker=" %{%F{6}%}$DOCKER_MACHINE_NAME%{%f%}"
fi fi
if [[ ! -z "$MODULAR_PATH" ]]; then
local modular=" 🔥"
fi
# Print the first line of the prompt # Print the first line of the prompt
print -P "$time_stamp $directory$git$py$docker$result" print -P "$time_stamp $directory$git$py$docker$modular$result"
} }
# Executed before each prompt. # Executed before each prompt.