Sunday, September 24, 2023
rated 0 times [  2] [ 0]  / answers: 1 / hits: 608  / 10 Months ago, fri, december 23, 2022, 1:46:23

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?

More From » command-line


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

[#1724] Friday, December 23, 2022, 10 Months  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 326
Total Questions: 127
Total Answers: 110

Location: Sao Tome and Principe
Member since Sat, Sep 12, 2020
3 Years ago
termetalli questions
Sat, Apr 30, 22, 17:54, 1 Year ago
Mon, Dec 6, 21, 05:24, 2 Years ago
Thu, Jun 30, 22, 00:32, 1 Year ago
Mon, Dec 19, 22, 00:15, 10 Months ago