#VSCode terminal with project name instead of path

7 messages · Page 1 of 1 (latest)

versed grove
#

How can I get vscode terminal to display the project name instead of the current directory? 💀

proven quiver
#

Where are you storing the project name? What shell are you using?

versed grove
#

i dont store it or anything, it's just the local folder. i'm using regular ubuntu terminal, if that's what you mean by shell. I saw someone's vscode terminal look like this and thought it was cool. Not sure if it's a python thing or something

proven quiver
#

I'm pretty sure VSC uses whatever your system shell is set to. So if you edit your shell prompt you can have it be whatever you want. It's not something I do very often so I'm not sure exactly how you'd do what you want.

In your terminal you can do echo $SHELL to see which shell you're using (should be something like /bin/bash or /bin/zsh). You can then google how to edit the bash prompt or the zsh prompt.

versed grove
#

Oh, I see. I thought it could be an extension or something. Thanks

dry sierra
#

It's determined by your PS1 environment variable