Console cursor atop shell path + showing password as shell name
See original GitHub issueDoes 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:
- Open VSCode, either by command line or Dock
- Open a new console
- 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) - 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
calledPWD
, thus the console has a name that is a meaningful password.
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:
- Created a year ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
disabling shell integration will fix this as a temporary workaround
I have the same issue My PS1 result is
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