Skip to content

Shell integration breaks prompt plugins #747

@sporkd

Description

@sporkd

The shell integration for tea -package and dev are breaking my prompt. I am using a prompt library called Starship in ZSH to display a custom prompt. In some cases is seems the tea prompt gets appended on the line before my PS1. In other cases it's blowing away PS1 all together (see screen grabs below where PS1 becomes blank).

My thought is that maybe tea shouldn't be messing with the prompt because it would be hard to predict all the different ways installed plugins might be using it. Starship also already has functionality to show current version of node, etc. in your prompt.

However, I imagine the proper (and neat 🤩) way to implement this would be creating a Starship module for tea, or other prompt plugins out there. Then users could enable the tea module in favor of using the existing modules for node, etc.

Tea version: 1.0.0-alpha.4

After running tea -node my PS1 gets overwritten and and now promptless:
Screenshot 2023-09-25 at 1 52 12 PM

After running dev and then cd .. my PS1 gets overwritten and and now promptless again:
Screenshot 2023-09-25 at 1 55 48 PM

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