jetify-com / devbox

Instant, easy, and predictable development environments
https://www.jetify.com/devbox/
Apache License 2.0
7.82k stars 187 forks source link

Prompt (starship) looks broken in zsh and in fish #2041

Open niklasravnsborg opened 1 month ago

niklasravnsborg commented 1 month ago

What happened?

Screenshot 2024-05-08 at 22 18 40

Steps to reproduce

  1. Install Starship prompt (I installed it via home-manager).
  2. Run devbox init in a project
  3. 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

bohrium2b commented 1 week ago

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.