Quantcast
Channel: Bash: How to determine whether terminal is opened by third-party app - Ask Ubuntu
Viewing all articles
Browse latest Browse all 5

Bash: How to determine whether terminal is opened by third-party app

$
0
0

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.


Viewing all articles
Browse latest Browse all 5

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>