Skip to content

Starship - Prompt is mangled #1005

@igneousflock

Description

@igneousflock

Describe the bug

When using nu compiled with starship prompt support, the prompt appears mangled. See screenshot.

%{%}~%{%} 
%{%}->%{%} cd aur-build/nushell/

%{%}nushell%{%} on %{%} %{%}%{%}master%{%} is %{%}📦 %{%}%{%}v0.5.1%{%} via %{%}🦀 %{%}%{%}v1.39.0%{%} 
%{%}->%{%}

The syntax highlighting appears to work though.

To Reproduce

Steps to reproduce the behavior:

  1. cargo install --path . --features starship-prompt --force
  2. nu

The problem appears with both alacritty and kitty. It occurs when nu is started from zsh or bash.

Expected behavior

The prompt should appear as normal.

Screenshots

2019-11-23-224716

Configuration

  • OS: Arch Linux
  • Version Kernel 5.3.12
  • Rust:
# cargo --version && rustc --version
cargo 1.39.0 (1c6ec66d5 2019-09-30)
rustc 1.39.0 (4560ea788 2019-11-04)
  • Terminal: Kitty v0.14.6 or Alacritty fork v0.3.3
  • Optional features: starship-prompt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions