devbox
devbox copied to clipboard
Prompt (starship) looks broken in zsh and in fish
What happened?
Steps to reproduce
- Install Starship prompt (I installed it via home-manager).
- Run
devbox initin a project - Run
devbox shell
Command
shell
devbox.json
{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.10.5/.schema/devbox.schema.json",
"packages": ["bun@latest"],
"shell": {
"init_hook": [
"echo 'Welcome to devbox!' > /dev/null"
],
"scripts": {
"test": [
"echo \"Error: no test specified\" && exit 1"
]
}
}
}
Devbox version
0.10.5
Nix version
nix (Nix) 2.18.2
What system does this bug occur on?
macOS (Apple Silicon)
Debug logs
No response
This is likely caused by the devbox prompt. You can turn it off (allegedly; I haven't been able to make it work) by setting DEVBOX_NO_PROMPT to true. On fish, you can do it using set -gx DEVBOX_NO_PROMPT true.
I was able to make it work with fish by using lowercase:
set -gx devbox_no_prompt true