Repository: vscode
Issue: Console cursor atop shell path + showing password as shell name
Labels: bug,terminal-shell-zsh

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.71.0
- OS Version: Darwin x64 21.6.0

Steps to Reproduce:

1. Open VSCode, either by command line or Dock
2. Open a new console
3. The cursor will be atop the branch name, and there are two symbols, `%{`, at the end of my console. (yes, this is a template i made, but it was working before i updated, and it works on iterm2, as it always has before)
4. Open a new terminal, and the shell will have something like a name. For some reason, it is reading a local variable on my `~/.zshrc` called `PWD`, thus the console has a name that is a meaningful password.

 

![Screenshot 2022-09-12 at 10 18 26](https://user-images.githubusercontent.com/14791333/189618798-b7c8f749-0bbb-47d2-98b2-ae0127ef29e9.png)


`settings.json`
```json
{
  "workbench.iconTheme": "material-icon-theme",
  "security.workspace.trust.untrustedFiles": "open",
  "editor.wordWrap": "on",
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "todo-tree.general.enableFileWatcher": true,
  "todo-tree.highlights.useColourScheme": true,
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[json]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "cSpell.userWords": ["dtos", "nestjs"],
  "jest.showTerminalOnLaunch": false,
  "jest.autoRun": {
    "watch": false,
    "onSave": "test-src-file"
  },
  "sort-imports.languages": ["javascript", "typescript"],
  "editor.formatOnSave": true,
  "typescript.updateImportsOnFileMove.enabled": "always",
  "settingsSync.ignoredExtensions": []
}
```

List of extensions:

```shell
amatiasq.sort-imports@6.3.1
Dart-Code.dart-code@3.48.3
Dart-Code.flutter@3.48.0
dbaeumer.vscode-eslint@2.2.6
eamodio.gitlens@12.2.2
esbenp.prettier-vscode@9.8.0
FelixAngelov.bloc@6.6.1
firsttris.vscode-jest-runner@0.4.55
Gruntfuggly.todo-tree@0.0.215
hashicorp.terraform@2.24.2
humao.rest-client@0.25.1
ms-azuretools.vscode-docker@1.22.1
ms-python.python@2022.14.0
ms-python.vscode-pylance@2022.9.10
ms-toolsai.jupyter@2022.8.1002431955
ms-toolsai.jupyter-keymap@1.0.0
ms-toolsai.jupyter-renderers@1.0.9
ms-vscode-remote.remote-containers@0.251.0
Orta.vscode-jest@4.6.0
PKief.material-icon-theme@4.20.0
streetsidesoftware.code-spell-checker@2.7.3
```