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

Default prompt walters interferes with zsh printing output that doesn't contain new line. #667

Closed
takeda opened this issue May 23, 2023 · 1 comment

Comments

@takeda
Copy link

takeda commented May 23, 2023

So this looks like this has been forever (according to git blame it's been at least for 7 years).

The zsh has a mechanism where if output doesn't end with a new line, it will add it automatically and mark that with inverted percent sign:

https://unix.stackexchange.com/questions/167582/why-zsh-ends-a-line-with-a-highlighted-percent-symbol

The Walters default prompt which is defined if the user doesn't change promgrams.zsh.promptInit has a fancy way of showing current directory on the right side of the screen. This unfortunately interferes with the former and causes the last line that has no new line at the end to be covered by the prompt.

This happens even if one installs custom prompts, either via oh-my-zsh or via starship.

Since I use a custom prompt, so for me the solution to this problem was to set promgrams.zsh.promptInit to empty string. I think setting prompt_cr and prompt_sp options in zsh could also be solution if somebody wants to use prompt like Walters, but then setting prompt like Walters might have other unintended consequences for somebody who uses different prompt anyway.

This was referenced May 14, 2024
@Enzime
Copy link
Collaborator

Enzime commented May 20, 2024

Closed by #954

@Enzime Enzime closed this as completed May 20, 2024
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