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

Zsh breaks within sudo -s #12

Open
lainiwa opened this issue Mar 23, 2019 · 2 comments
Open

Zsh breaks within sudo -s #12

lainiwa opened this issue Mar 23, 2019 · 2 comments

Comments

@lainiwa
Copy link
Owner

lainiwa commented Mar 23, 2019

No description provided.

@lainiwa
Copy link
Owner Author

lainiwa commented Jul 23, 2019

It seems that ubuntu's sudo implicitly preserves the environment of the shell. On CRUX one should run sudo with the -E flag (sudo -Es) to have the same effect.

@lainiwa
Copy link
Owner Author

lainiwa commented Jul 23, 2019

Still, the question is: why does not the zsh re-read the config (which expicitly sets the PROMPT_SUBST option) and set it to the correct value?

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

No branches or pull requests

1 participant