Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode terminal not showing current folder

When I open integrated terminal in VS Code, the initial screen showing "bash-3.2", see my screen shot

When I looked any online examples, it always showing current path or folder, such as the image in official page.

I was wondering how could I change the setting so that integrated terminal can show at least current folder that I am running the command. Please advise.

===updated====

I am sorry that I forgot to mention my OS is macOS sierra

like image 608
Sean Lin Avatar asked Oct 19 '25 04:10

Sean Lin


1 Answers

Found the answer. You should add the following to settings.json:

"terminal.integrated.shellArgs.osx": ["-l"]

Restart VS Code to see it take effects.

like image 159
Shawn Avatar answered Oct 21 '25 01:10

Shawn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!