Saturday, April 20, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 695  / 1 Year 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

 Answers
0

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

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

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

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