How do I disable powerline-shell only for the VSCode terminal?

Solution 1:

I added a few lines of code in my .bashrc to detect if the terminal was called from VSCode or not and only start powerline if it was not as follows:

if [[ "$TERM_PROGRAM" != "vscode" ]]; then
   # use powerline
fi