Skip to content

The Tool Is Generating A PS1 String With Unexpected Leading Characters  #13

@siberian-devsky

Description

@siberian-devsky

This prompt:

  • PS1='[\e[0;1;38;5;212m]$(git branch 2>/dev/null | grep '"'"'^*'"'"' | colrm 1 2) [\e[0;1;38;5;46m]\u[\e[0;38;5;227m]@[\e[0;1;38;5;46m]\h[\e[0m]:[\e[0;1;38;5;45m]/[\e[0;1;38;5;45m]\W[\e[0;1;38;5;226m]# [\e[0m]'

is resulting in the following prompt when set in my .bashrc file. Screenshot of the generator page below

  • ]�main jeff@machine:/var$

Where are these two leading characters coming from?

  • ]�

Note: view this in plaintext mode so the markdown editor doesn't render them differently. This is also important because the renderer is removing non-escaped backslashes

Bash Prompt Generator-2022-09-12

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