-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepending using shell integration does not work for fish when using starship prompt #208465
Comments
same problem |
Turns out just shell integration does not work at all when using starship under fish currently. |
Shell integration overwrites the prompt completely which replaces our hooks that apply the env changes. To get shell integration working in this case you need to install it manually and disable the setting inside VS Code: "terminal.integrated.shellIntegration.enabled": false config.fish: if status is-interactive
starship init fish | source
string match -q "$TERM_PROGRAM" "vscode"
and . (code-insiders --locate-shell-integration-path fish)
end The only way to work around this AFAIK is to write files to |
@Tyriar Thanks for the insight. Would |
I'm not sure if I understand: Shouldn't we still attempt to apply environment variable collections like in https://github.com/microsoft/vscode/pull/206994/files for other shells like fish to have EnvironmentVariableCollection-based activation even in case shell integration is disabled? |
@anthonykim1
This happens when we get any vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.ts Lines 334 to 394 in 5a68b64
Or vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.ts Lines 334 to 394 in 5a68b64
|
starship is a customized prompt. Same issue as #205133 (comment) but for fish.
Turns out #206994 was just fixing it for zsh, we should make sure to apply these changes to all shell integration scripts using
VSCODE_SHELL_INTEGRATION
.cc/ @Tyriar
Originally reported in microsoft/vscode-python#23110 microsoft/vscode-python#22429
The text was updated successfully, but these errors were encountered: