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

Small fix for some ZSH prompt configurations #15

Merged
merged 2 commits into from
May 20, 2019

Conversation

seqizz
Copy link
Contributor

@seqizz seqizz commented May 16, 2019

Zsh has precmd_functions array, which is one way to set up your prompt. Polysh is failing to provide a ready prompt if we don't unset it. preexec_functions and other similar ones might also be needed to unset but I didn't test since I don't use them.

Also reverted sorting of changelog to newest-first with some sed-magic.

Copy link
Contributor

@kofrezo kofrezo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am fine with disabling precmd_functions for ZSH as a bash user. I don't know if any ZSH user might rely on having precmd_functions executed for e.g. displaying exit code of last command or similiar behaviour and if this would reduce ZSH support to level people cannot use it properly.

@seqizz
Copy link
Contributor Author

seqizz commented May 16, 2019

Well this is mostly about exporting the PROMPT or PS1 variables and some themes/users are preferring to do it on pre* scope. Even if we're decreasing the functionality, it's for a good cause, otherwise polysh will never show the server ready for some users.
Same thing applies to bash users who (mis)use variables like PROMPT_COMMAND 😅

@kofrezo kofrezo merged commit 039d0f3 into innogames:master May 20, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants