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

p10k prompt broken over ssh #927

Closed
IvanBliminse0101 opened this issue Aug 2, 2020 · 2 comments
Closed

p10k prompt broken over ssh #927

IvanBliminse0101 opened this issue Aug 2, 2020 · 2 comments

Comments

@IvanBliminse0101
Copy link

IvanBliminse0101 commented Aug 2, 2020

Hello, I have a home server that I need to connect to with ssh, but when I connect the prompt appears to not work? I found a similar problem here. But that did not solve my problem, please help.
Image:

obfuscated
Some areas of the image were redacted.

What it says on the other bug report:

The problem is that the locale in your SSH session isn't using utf-8 encoding. If you try to print a non-ascii character with print '\u2B50' or echo $'\u2B50', you'll get "character not in range" error. It's not affecting just p10k but everything you run in the SSH session. To fix this problem you need to run locale -a, pick a locale that has utf8, utf-8 or UTF8 or UTF-8 in its name, and export LANG from your ~/.zshrc or ~/.zshenv with the value set to the chosen locale.
For example:
echo 'export LANG=C.UTF-8' >>! ~/.zshenv
Or:
echo 'export LANG=en_US.UTF-8' >>! ~/.zshenv

I tried the above and the locale was set correctly to en_GB.UTF-8 and the server's locale was set correctly too, yet this issue still occurs?

@romkatv
Copy link
Owner

romkatv commented Aug 2, 2020

If you want to use zsh with powerlevel10k on mineos-tkldev, you need to install zsh with powerlevel10k on mineos-tkldev.

The issue you've linked to is unrelated.

@romkatv romkatv closed this as completed Aug 2, 2020
@IvanBliminse0101
Copy link
Author

Oh thanks, I thought it would just work with any ssh server, i'm sorry for my ignorance.

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