0

I have installed powerline-shell for my terminal and it works fine.

However, the terminal in VSCode always starts with the error shown in the image below, and I can't see my Git status or my current directory when using the terminal:

enter image description here

I tried playing around with the terminal settings in VSCode but nothing seems to have an effect on this. Other than experimenting, I am not sure how should I go about solving this. How can I disable powerline-shell when I'm using the terminal in VSCode?

2 Answers2

2

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
0

This helped for me:
run python -m pip install powerline-shell in terminal in VSCode.

Dirkiboy
  • 1
  • 1