Quantcast
Channel: Can I check if the terminal was started by Visual Studio Code? - Ask Ubuntu
Viewing all articles
Browse latest Browse all 3

Can I check if the terminal was started by Visual Studio Code?

$
0
0

I have a script which runs whenever I open the terminal (I put the command in .bashrc). Now when I open Visual Studio Code the script is obviously also executed in the internal terminal therein. I don‘t want this to happen. Is there any way to detect whether a terminal instance was started by VSCode so I can prevent the script from executing in that case? (I use bash)

Sorry if this is a dumb question, I am still fairly new to Linux and bash.


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles



Latest Images