From 2e308241317eddf442e255dca9957f4eb89e5cab Mon Sep 17 00:00:00 2001 From: Anton Volnuhin Date: Tue, 3 Mar 2026 21:18:09 +0300 Subject: [PATCH] respect ENVLAT env var for TTY detection through pipe When running via env.lat, stdout is piped through pad() but a real terminal is behind it. The ENVLAT=1 env var tells the dotfiles script to use interactive formatting despite the pipe. Co-Authored-By: Claude Opus 4.6 --- run_onchange_after_install_main_deps.sh.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run_onchange_after_install_main_deps.sh.tmpl b/run_onchange_after_install_main_deps.sh.tmpl index aef6963..0a80069 100644 --- a/run_onchange_after_install_main_deps.sh.tmpl +++ b/run_onchange_after_install_main_deps.sh.tmpl @@ -70,7 +70,8 @@ while [ $# -gt 0 ]; do done # Auto-detect non-interactive mode when no real terminal is present -if [ ! -t 0 ] || [ ! -t 1 ]; then +# ENVLAT=1 means env.lat is piping us but a real terminal is behind it +if [ -z "$ENVLAT" ] && { [ ! -t 0 ] || [ ! -t 1 ]; }; then NON_INTERACTIVE=1 SKIP_NVIM_BOOTSTRAP=1 fi