Is there any way I can get the prompt as a string? #2606
Replies: 2 comments 2 replies
-
Powerlevel10k does not provide an API for this. Depending on what exactly you are after, you might be able to achieve it through lower level APIs. |
Beta Was this translation helpful? Give feedback.
-
If you are capturing the complete TTY output, you can enable terminal integration in powerlevel10k ( If you are capturing only text, the easiest solution is to identify prompt by a special symbol that is present in all prompt but unlikely to be present elsewhere. Given your screenshot, I assume that all your prompts have |
Beta Was this translation helpful? Give feedback.
-
I am writing a script for which I need to know the prompt string (
~/music >
) value as a string. Is there any way I can print it in zsh and store it in a variable?This part:
Beta Was this translation helpful? Give feedback.
All reactions