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

Answer by Daniel Imms for Can I check if the terminal was started by Visual...

VS Code sets the standard environment variable TERM_PROGRAM in the terminal's environment to indicate what launched it, so you can solve your problem using this without needing to parse the process...

View Article



Answer by WinEunuuchs2Unix for Can I check if the terminal was started by...

Using this potentially duplicate answer: https://askubuntu.com/a/1012277/307523 rick@alien:~$ echo $$ 25119 ───────────────────────────────────────────────────────────────────────────────────────────...

View Article

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

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...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images