-
Notifications
You must be signed in to change notification settings - Fork 346
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
Starship is initialized wrong when loaded by direnv in zsh #860
Comments
A workaround is to set the STARSHIP_SHELL variable to zsh. However, this will cause starships shell module to display zsh instead of bash. |
how did youll resolve this? I also have the same problem but the setting of
for context, I already use starship on my laptop. When I |
I ended up not using starship from devenv, but initializing it from my .bashrc / .zshrc
|
I've also noticed that the prompt gets mangled if I just call I think we can maybe fix this if we get mkShell or something similar to use |
Describe the bug
Starship outputs wrong control characters when initialized from zsh through direnv.
A clear and concise description of what the bug is.
To reproduce
This can be reproduced by creating a .envrc (by running devenv init) in the starship example in git from zsh.
The integration adds
eval "$(starship init $(echo $0))"
to the enterShell.$0 will be the bash that's started by devenv, not the parent shell. This causes starship to output bash control characters instead of zsh ones.
Version
devenv: 0.6.3
The text was updated successfully, but these errors were encountered: