Skip to content

Starship prompt newline is not honoured #21

@BryanPoulin

Description

@BryanPoulin

Describe the bug

When using starship with ~/.config/starship.toml and add_line = true the command-line cursor is on the same line as the prompt info.

To Reproduce

  1. Install starship prompt
  2. Enable prompt suport in warp
  3. Set add_newline = true in ~/.config/starship.toml
  4. See the command line cursor in the wrong place

Expected behaviour

The command prompt cursor should be on the next line like with PROMPT="${PROMPT}"$'\n' added to ~/.zshrc

Screenshots

Left: add_newline = true
Right: with added PROMPT="${PROMPT}"$'\n' to ~/.zshrc

Image Image

Operating System

MacOS 15.6.1
Ubuntu 24.04

Additional Context

You can use the following command to add a newline to your custom prompt (PS1).

echo -e '\nPROMPT="${PROMPT}"$'\''\\n'/''' >> ~/.zshrc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions