Today I Learned

tags


2021/10/28

That you can detect the terminal you’re running in (including vscode) by checking the value of "${TERM_PROGRAM:-}". The VS Code integrated termial always has a $TERM_PROGRAM of vscode.

Source: https://stackoverflow.com/a/59231654/6571327