Skip to content

$PS2 #32

Open
Open
$PS2#32
@Roy-Orbison

Description

@Roy-Orbison

Feature Description

When a prompt overflows a line (from unclosed strings or \ to deliberately continue a line), bash uses PS2 as the secondary prompt. I colour this as well, which looks a lot better than the default. E.g. if my PS1 ends with \[\e[38;5;131m\]\$\[\e[0m\] , my PS2 will be \[\e[38;5;131m\]>\[\e[0m\] .

Can you add an optional Secondary Prompt section that, if completed adds a PS2='...' line to the Output and its result to the Preview?

Not a duplicate

  • This is not a duplicate

Want to Implement

  • I want to implement this feature

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions