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 <noreply@anthropic.com>
This commit is contained in:
parent
fa3bb7b780
commit
2e30824131
@ -70,7 +70,8 @@ while [ $# -gt 0 ]; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Auto-detect non-interactive mode when no real terminal is present
|
# 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
|
NON_INTERACTIVE=1
|
||||||
SKIP_NVIM_BOOTSTRAP=1
|
SKIP_NVIM_BOOTSTRAP=1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user