Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Javier Fernández
@jfernandz

@romkatv when I do your steps (2) and (4) does produce the same output, but if I do

  1. Comment source line inside .zshrc
  2. Go to tty3, login and locale | grep LC_CTYPE
  3. source path/to/powerlevel9k.zsh-theme
  4. locale | grep LC_CTYPE

then I get a different output in (2) and (4); in fact the output in (4) is empty.

Roman Perepelitsa
@romkatv
@WyRe OK.
mike-k0
@mike-k0
Is there a way to copy the contents of the zsh terminal with it coming out cleanly? Currently get weird ? symbols, guess it's kind of because of the glyphs I have on my font
Roman Perepelitsa
@romkatv

@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.

mike-k0
@mike-k0
Well I don't actually want the glyphs and stuff to copy over
I'd be fine if those emojis or images came out as blanks or something
mike-k0
@mike-k0
Basically like once it gets copied to the clipboard anything that isn't ascii or something would be gotten rid of
I guess... a filter
Roman Perepelitsa
@romkatv
@mikek2 Are you asking for help writing a script to remove non-ascii symbols from your clipboard? It shouldn't be difficult and it's doesn't require any knowledge of powerlevel9k or zsh. Or am I misunderstanding what you are saying?
mike-k0
@mike-k0
Well, originally I was just interested in being able to copy what was in my terminal to say a file to share with someone else (for example). Due to the font I'm using that would result in unintended ? symbols being pasted over. It looks like a scenario where non-ASCII characters aren't copied over should theoretically work...
I already use a plugin in a text editor (Sublime Text 3) that removes non-ascii characters on selection, I was just wondering if I could somehow skip that step altogether.
François Loupias
@fralps

Hi there,

I have a problem with the display of arrows

Syphdias
@Syphdias
@fralps Could you go into a bit more detail? If you are talking about a missalignment of the segment separator it is usually the font that is at fault. If you don't see the the proper symbols it can be the font selection of your terminal as well or a wrongly set locale. Did you search in the open and closed issues for your problem?
Hebgbs
@Hebgbs
Awww, @romkatv why'd you delete your own config from the wiki?
Roman Perepelitsa
@romkatv
@Hebgbs I deleted Pure Power config because Lean style in the configuration wizard is better. Unlike Pure Power, Lean doesn't work with p9k
Hebgbs
@Hebgbs
Understandable. (But the innuendo in it was top notch.)
Adam Ben-David
@AdamBD
hi all can you customize the delimeters in this prompt?
i want to remove the full colored blocks and go with something more minimal looking
Joseph Campos
@Thutm
Yeah you are able to customize most everything. There are a whole list of configs on the README: https://github.com/Powerlevel9k/powerlevel9k/wiki/show-off-your-config
A lot of the “minimal” prompts have blank delimiters or just use spaces there.
Also if you set the segment “background” to “clear” that will help minify things a bit.
Joseph Campos
@Thutm
Just an FYI those sample configurations are probably a little old, and may have references to older env variables. Most var’s were shortened to P9K_ at one point.
Joseph Campos
@Thutm
There is an example
image.png
Joseph Campos
@Thutm
Anyone use the pyenv segment? Wanting to get some feedback before I look into extending that segments functionality… So, generally when i’m outside of a git repo I usually don’t need to display py version so having it ignore ‘system’ verison is fine. When i’m in a git repo though I usually like to see what py version i’m at, even if its the same as the system version. I was thinking of either adding a flag that would always display py version if your inside a git repo. Or just always display version set in .python-version file if exists. I usually always lock my git repo’s to a version (even if its same as system) so just overriding version display with if .python-version is okay for me.
Ben Hilburn
@bhilburn
@/all - Hi everyone! This probably isn't a surprise to many, but I have just marked P9k as deprecated and unmaintained. I'm very proud of what P9k achieved, and it's legacy continues in @romkatv's incredible work on P10k. If you haven't already, please migrate to P10k. Happy hacking :)
Santiago Sanchez
@Guisanpea
Happy to see that you have done a good job. You can be proud for making a tool that a lot of people have used for thousand of hours :)
Joseph Campos
@Thutm
@bhilburn Sad to see it go. Thanks for all the fish!
Roman Perepelitsa
@romkatv
Picking up the torch. Humbled and honored.
Roman Perepelitsa
@romkatv

@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.

Joseph Campos
@Thutm
ah, thanks!
Clarence "Sparr" Risher
@sparr
before running p10k configure, the default prompt included git status for my ~ (which is a git repo). after, I get git status in my prompt for any other git repo, but not for ~. What might have caused this change?
Roman Perepelitsa
@romkatv
@sparr See faq. In the future please either file an issue against powerlevel10k or ask on powerlevel10k gitter. Powerlevel9k and powerlevel10k are two independent projects.
Clarence "Sparr" Risher
@sparr
oh. I did scroll up and see other discussion of p10k before asking here
Clarence "Sparr" Risher
@sparr
sorry
Matthew Marcus
@RavenHursT
w/ powerlevel10k, how do I disable segment truncations like "  ravenhurst/F…map-controls" in git branch names?
Roman Perepelitsa
@romkatv
@RavenHursT Happy to help if you post this question in the powerlevel10k gitter.
Matthew Marcus
@RavenHursT
@romkatv sorry was already in here
Vendre08
@Vendre08
Has anyone else been using powerlevel10k with the raspberry pi4?
Roman Perepelitsa
@romkatv
@Vendre08 Yes. It works fine on rpi4. Please use the powerlevel10k gitter for discussing powerlevel10k. This one is for powerlevel9k.
Javier Fernández
@jfernandz
I've installed powerlevel9k in debian and after sourcing it I'm having this errors https://imgur.com/E6motbm.png
I've also installed powerline fonts, so I don't know what could causing this
Roman Perepelitsa
@romkatv
You need to install and enable a UTF-8 locale.
It should be enough to run dpkg-reconfigure locales, select the locale you want (as long as it's UTF-8) and relogin.
Javier Fernández
@jfernandz
thank you @romkatv :smile:
Roman Perepelitsa
@romkatv
You are welcome.
Daniel Gordon
@DanielGGordon
It's been like 2 years since I've checked out powerlevel9k. At the time, I decided to hold off on using it, because I wanted to use it in WSL or git bash for windows(i think), but it ended up being too slow on Windows machines (I think WSL had some file writing performance issues).
Have there been any developments here in regards to Windows compatibility?
Roman Perepelitsa
@romkatv
As far as I know, there hasn’t been any development in Powerlevel9k with regards to windows compatibility.
... in the last two years that is.