question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Console cursor atop shell path + showing password as shell name

See original GitHub issue

Does this issue occur when all extensions are disabled?: Yes

  • 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

settings.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:

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

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
meganroggecommented, Sep 12, 2022

disabling shell integration will fix this as a temporary workaround

"terminal.integrated.shellIntegration.enabled": false
1reaction
giregkcommented, Oct 18, 2022

I have the same issue My PS1 result is

$FG[237]------------------------------------------------------------%{$reset_color%}
$FG[032]%~\
$(git_prompt_info) %* \
$FG[105]%(!.#.»)%{$reset_color%}

I’m also using zsh and this is all my config files related to it (tell me if I missed some) AllBashConfig.zip

And setting “terminal.integrated.shellIntegration.enabled” to false in VSCode settings completely solved it for me. (I still have all my zsh features so it’s working as expected).

Hope this helps

Read more comments on GitHub >

github_iconTop Results From Across the Web

linux - Is there any reason why I get ^[[A when I press up arrow ...
The user name prompt on the console is dumb and doesn't understand most escape sequences. It doesn't have the line edition and history...
Read more >
How to get the cursor position in bash? - Stack Overflow
I'm using this command in PROMPT_COMMAND in order to find the horizontal cursor position so I can print a % in reverse video...
Read more >
How to Change / Set up bash custom prompt (PS1) in Linux
Learn how to customize and colorize your BASH shell prompt using PS1 in Linux, macOS/Unix. You need to change and set up prompt...
Read more >
Advanced Bash-Scripting Guide
Batch file keywords / variables / operators, and their shell equivalents; N-2. ... Immediately following the sha-bang is a path name.
Read more >
Chapter 4: The Z-Shell Line Editor
The two most common conventions for cursor keys are where the up key sends ` \e[A ... Note, by the way, that zsh...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found