fix(interactive): only print shoutout when stdout is a terminal#349
fix(interactive): only print shoutout when stdout is a terminal#349drmikecrowe wants to merge 2 commits into
Conversation
The shoutout line ran on every interactive shell load, including non-terminal contexts such as git hooks, piped commands, and TERM=dumb sessions, where it polluted output. Guard it with `[ -t 1 ]` and a TERM check so it only prints to a real terminal.
|
lgtm, good find Todos:
Notes: For reference there are also these which use some bash.bash vars (bash.bash is not sourced in the interactive shell, as it enables strict mode):
Happy to merge as is, then revise later, up to you. |
I'm trying to figure out how |
Ack -- this might have been me. In a couple of cases I had issues with my scripts not starting and it's entirely possible I had a |
The shoutout line ran on every interactive shell load, including non-terminal contexts such as git hooks, piped commands, and TERM=dumb sessions, where it polluted output. Guard it with
[ -t 1 ]and a TERM check so it only prints to a real terminal.