@romkatv when I do your steps (2) and (4) does produce the same output, but if I do
source
line inside .zshrc
locale | grep LC_CTYPE
source path/to/powerlevel9k.zsh-theme
locale | grep LC_CTYPE
then I get a different output in (2) and (4); in fact the output in (4) is empty.
@mikek2
Is there a way to copy the contents of the zsh terminal with it coming out cleanly?
There is, but it's not easy. If you want your prompt to look decent once you copy-paste it, you need to restrict the choice of glyphs to those found in most fonts. Absolutely avoid glyphs with code points from Private Use Area (from U+E000 to U+F8FF) as those are by definition font-specific and non-portable. The triangles in your prompt (U+E0B0) fall within Private Use Area, so they turn into question marks or some other weird thing when viewed with most fonts. Also try to limit the use of emojis. For example, ⚙ (Gear Emoji, U+2699) that's used by Powerlevel9k as a "compatible" (a.k.a. portable) glyph is missing from many modern terminal fonts.
@Thutm There are several additional options in p10k for pyenv. This might work for you:
POWERLEVEL9K_PYENV_SOURCES=(shell local)
POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=true
POWERLEVEL9K_PYENV_SHOW_SYSTEM=true
This will display the output of pyenv version-name
if and only if there is .python-version
in the current directory or above, or PYENV_VERSION
is set.
dpkg-reconfigure locales
, select the locale you want (as long as it's UTF-8) and relogin.