Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose "wip" string to edit #2638

Open
jasursadikov opened this issue Apr 9, 2024 · 3 comments
Open

Expose "wip" string to edit #2638

jasursadikov opened this issue Apr 9, 2024 · 3 comments

Comments

@jasursadikov
Copy link

It would be nice to edit "wip" prompt part from .zshrc file
This part does take care in .p10k.zsh

    # Display "wip" if the latest commit's summary contains "wip" or "WIP".
    if [[ $VCS_STATUS_COMMIT_SUMMARY == (|*[^[:alnum:]])(wip|WIP)(|[^[:alnum:]]*) ]]; then
      res+=" ${modified}wip" # < would be nice to have wip in typeset thing.
    fi
@romkatv
Copy link
Owner

romkatv commented Apr 9, 2024

You can replace that string with something else.

@jasursadikov
Copy link
Author

Yeah, sure, but then whenever I am reconfiguring p10k, I should revert the change. I am keeping all those changes inside my .zshrc rather than keeping those in .p10k.zsh

@romkatv
Copy link
Owner

romkatv commented Apr 13, 2024

The only supported way to customize powerlevel10k after generating a config is by editing ~/.p10k.zsh.

There is a bit of discussion related to this topic here: #2586. There are older issues, too, but they aren't easy to find.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants