I want my bash script (specifically my ~/.bashrc
) to do something only if the terminal was opened by me directly, and do something else if it was opened through an app e.g. VS Code.
How can I determine what is the case? Is there a variable for that?
Thanks in advance.
↧
Bash: How to determine whether terminal is opened by third-party app
↧
Trending Articles
More Pages to Explore .....