How can I check in bash if a shell is running in interactive mode?
Posted
by Checkers
on Server Fault
See other posts from Server Fault
or by Checkers
Published on 2010-05-30T23:53:11Z
Indexed on
2010/05/31
0:03 UTC
Read the original article
Hit count: 295
How can I tell (in ~/.bashrc
) if I'm running in interactive mode, or, say, executing a command over ssh. I want to avoid printing of ANSI escape sequences in .bashrc
if it's the latter.
© Server Fault or respective owner