@@ -67,7 +67,7 @@ typeset -g _FORGE_TERM_PENDING_TS=""
6767# Called before each command executes.
6868# Records the command text and timestamp, emits OSC 133 B+C markers.
6969function _forge_context_preexec() {
70- [[ " $_FORGE_TERM_ENABLED " != " true" ]] && return
70+ [[ " $_FORGE_TERM " != " true" ]] && return
7171 _FORGE_TERM_PENDING_CMD=" $1 "
7272 _FORGE_TERM_PENDING_TS=" $( date +%s) "
7373 # OSC 133 B: prompt end / command start
@@ -87,7 +87,7 @@ function _forge_context_precmd() {
8787 # even when context capture is disabled.
8888 _forge_osc133_emit " D;$last_exit "
8989
90- [[ " $_FORGE_TERM_ENABLED " != " true" ]] && return
90+ [[ " $_FORGE_TERM " != " true" ]] && return
9191
9292 # Only record if we have a pending command from preexec
9393 if [[ -n " $_FORGE_TERM_PENDING_CMD " ]]; then
@@ -115,7 +115,7 @@ function _forge_context_precmd() {
115115# Register using standard zsh hook arrays for coexistence with other plugins.
116116# precmd is prepended so it runs first and captures the real $? from the
117117# command, before other plugins (powerlevel10k, starship, etc.) overwrite it.
118- if [[ " $_FORGE_TERM_ENABLED " == " true" ]]; then
118+ if [[ " $_FORGE_TERM " == " true" ]]; then
119119 preexec_functions+=(_forge_context_preexec)
120120 precmd_functions=(_forge_context_precmd " ${precmd_functions[@]} " )
121121fi
0 commit comments