Update prompt to support Modular dev env
This commit is contained in:
@@ -190,6 +190,7 @@ _autoenv_snap_restore() {
|
||||
unset "_autoenv_snap_pre_path[$dir]" "_autoenv_snap_pre_ps1[$dir]" \
|
||||
"_autoenv_snap_diff_funcs[$dir]" "_autoenv_snap_diff_aliases[$dir]" \
|
||||
"_autoenv_snap_diff_env[$dir]"
|
||||
prompt "${prompt_theme[@]}"
|
||||
}
|
||||
|
||||
# Load zstat from stat module for inspecting modified time.
|
||||
|
||||
@@ -144,8 +144,12 @@ fresh_line_one() {
|
||||
local docker=" %{%F{6}%}$DOCKER_MACHINE_NAME%{%f%}"
|
||||
fi
|
||||
|
||||
if [[ ! -z "$MODULAR_PATH" ]]; then
|
||||
local modular=" 🔥"
|
||||
fi
|
||||
|
||||
# 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.
|
||||
|
||||
Reference in New Issue
Block a user