Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 19 09:49
    romkatv commented #1363
  • Sep 19 09:42
    martmists commented #1363
  • Sep 19 09:08
    romkatv commented #1363
  • Sep 19 08:32
    martmists commented #1363
  • Sep 18 12:52
    romkatv commented #1364
  • Sep 18 12:48
    MaxL commented #1364
  • Sep 18 12:48
    MaxL commented #1364
  • Sep 18 12:40
    romkatv commented #1364
  • Sep 18 12:37
    MaxL commented #1364
  • Sep 18 12:33
    romkatv commented #1364
  • Sep 18 12:31
    romkatv commented #1363
  • Sep 18 12:29
    MaxL opened #1364
  • Sep 18 12:23
    MaxL commented #1363
  • Sep 18 03:13
  • Sep 17 17:09
  • Sep 16 13:25
    martmists opened #1363
  • Sep 16 12:34
  • Sep 13 08:15
  • Sep 10 10:28
    romkatv commented #1350
Roman Perepelitsa
@romkatv

@Hebgbs

it would be nice if status is ok and POWERLEVEL9K_STATUS_OK_BACKGROUND is clear, to have no separator after that, as that's at the end of my right prompt.

I don't think you can do it with p9k. Since you are using p10k, this should work:

POWERLEVEL9K_RIGHT_SEGMENT_END_SEPARATOR='%(?.%F{green}✔%f .)'
POWERLEVEL9K_STATUS_OK=false
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status time)
I think it might work on next. It has the equivalent of POWERLEVEL9K_RIGHT_SEGMENT_END_SEPARATOR and I think prompt expansion is performed on it.
Roman Perepelitsa
@romkatv
By the way, @Hebgbs , this isn't a joint channel for p9k and p10k. It's specific to p9k. When I saw your question, I had a dilemma on my hands. I know that you are actually using p10k, so I felt it my duty to help you solve your problem. I could either reply through another channel -- which is awkward -- or reply here even though p10k is off-topic on this forum. To make my and other's life easier, please file issues against p10k when you have a questions or a feature requests.
Hebgbs
@Hebgbs
(oof I deleted the post I want to edit. Anyway...)
Thanks @romkatv for that information, did not know clear status was a p10k thing only. @Syphdias probably misunderstood me; I want history in newline, like some people have done with date (time) and tty but history in POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX isn't cutting it. (Yes I used graves, markdown limitation.)
Hebgbs
@Hebgbs
Just to note; everything I ask about are well-intentioned and based solely on my ignorance. I ask because I don't know, and I don't entirely know what's p9k-only.
Roman Perepelitsa
@romkatv
@Hebgbs Asking questions is fine, just use the right forum. If you are using p10k, open an issue against p10k. I'd like to help but it's really awkward going it here.
Hebgbs
@Hebgbs
That's fair, I just don't want to burden you with basic vanilla p9k stuff when you have better things to work on than answering some questions that could also be addressed here.
(Then again IDK which is what, but I also don't want to burden you with all of my questions.)
Vinay Sharma
@vinay0410
Hi all, I just wanted to ask, that is it possible to add multiple segments in POWERLEVEL9k_LEFT_SEGMENTS which are returned by a single function ?
Screenshot from 2019-07-09 15-52-52.png
Vinay Sharma
@vinay0410
I am trying to use the above prompt
And, I want to have different colours for different levels of directories. For this I am writing a custom function which will return multiple directories each with their own background colour. I was hoping to somehow include this as a list in LEFT_SEGMENTS, after which the left segment separator will be automatically applied.
Christo Kotze
@onaforeignshore
For the current stable branch, you can look here. For the next branch (development) this will change
Vinay Sharma
@vinay0410
Okay Thanks @onaforeignshore , I will have a look
Vinay Sharma
@vinay0410
Hi @onaforeignshore , I went through the link you provided, but currently it seems, that there is no way of setting background colour of symbol in the function itself.
I can only set Background color of whole segment from outside.
Is there a way to write a functions which generates a segment containing multiple sub segments of different background colors
Christo Kotze
@onaforeignshore
Currently each segment produces its own colors. You would have to modify an existing segment if you want to change its colouring, e.g. the dir segment
Vinay Sharma
@vinay0410
Hmm
I was looking on my own, and found a way to create subsegments using $1_prompt_segment
In developer's guide
Dominik Ritter
@dritter

While reviewing #1265 I stumbled upon some Issues that I'd like to add the v0.7.0 list:

There are probably more issues we need to fix before the next release.

leonbur
@leonbur

hello. I'm kind of a newbie here. I'm trying to create a kubernetes context segment that has a background color which depends on the kubernetes context. I've tried doing something like:

local KUBE_CTX=$(kubectl config current-context)
  if [[ ${KUBE_CTX} == *"mgmt"* ]]; then
    KUBE_CTX="Mgmt"
    PROMPT_BG='%K{yellow}'
  elif [[ ${KUBE_CTX} == *"staging"* ]]; then
    KUBE_CTX="Stage"
    PROMPT_BG='%K{green}'
  elif [[ ${KUBE_CTX} == *"prod"* ]]; then
    KUBE_CTX="Prod"
    PROMPT_BG='%K{red}'
  else
    PROMPT_BG=black
  fi

echo -n "%{$PROMPT_BG%}$KUBE_CTX"

but the problem is that only the text background changes, while the background of the end and beginning of the arrow ( greater than symbol) remains white. what am I doing wrong?

Screen Shot 2019-07-14 at 14.56.13.png
leonbur
@leonbur
do you have an example of how to do something similar?
Roman Perepelitsa
@romkatv

@Hebgbs

it would be nice if status is ok and POWERLEVEL9K_STATUS_OK_BACKGROUND is clear, to have no separator after that, as that's at the end of my right prompt.

I just realized there is a clean solution to this problem.

# Background of status when OK. Empty for transparent.
POWERLEVEL9K_STATUS_OK_BACKGROUND=
# If OK status is the first segment of right prompt, use this
# symbol instead of the default terminator. Empty for no symbol.
POWERLEVEL9K_STATUS_OK_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL=
Roman Perepelitsa
@romkatv
@leonbur Yes, but unfortunately I cannot elaborate for complicated reasons. I can tell you that Powerlevel9k doesn't support this.
Ben Hilburn
@bhilburn
I have transferred both the p9k and p9k-logo repositories to the official p9k organization
@dritter - you are an owner with full rights of the organization, now
Roman Perepelitsa
@romkatv
I have a question for those who use iTerm2 Shell Integration with a multi-line prompt. Would you prefer the iTerm2 prompt mark on the first prompt line (that is, right before the very first non-empty segment on the left) or on the last (at the beginning of the line with the cursor)?
Christo Kotze
@onaforeignshore
@romkatv As with anything UX related, user choice is probably the best option (in other words, support both options)
Roman Perepelitsa
@romkatv

@onaforeignshore Thanks for the advice.

If anyone here is using iTerm2 Shell Integration with multi-line prompt, I'd appreciate if you could share your preference.

Dominik Ritter
@dritter
@bhilburn That's fantastic news! :) Thank you very much.
Ben Hilburn
@bhilburn
@dritter - for sure! it's long overdue!
@dritter @Syphdias - chatting with @sambadevi about standing up a landing page for p9k at p9k.org =)
Dominik Ritter
@dritter
Very cool! @sambadevi let me know, if you need some Ideas ;)
Tim Otlik
@sambadevi
@dritter will do! right now I'm taking a look at Jekyll to automatically generate the pages from markdown
the page itself is already there but there isn't much too see except a one-liner.
Dominik Ritter
@dritter
:+1:
Thank you very much for tackling this! I've dreamed so long about this.
Tim Otlik
@sambadevi
We just need a redirect set up from p9k.org
if I'm done with the init setup for Jekyll I'll tell you guys
Dominik Ritter
@dritter
@bhilburn needs to install that redirect. I have no control over the domain..

if I'm done with the init setup for Jekyll I'll tell you guys

:+1:

Ryan L McIntyre
@ryanoasis
:+1: on Jekyll, good for this type of thing I believe, at least to get the ball rolling
Ben Hilburn
@bhilburn
@sambadevi - just let me know when things are good and I'll set up the redirect
Eugene Zimin
@capjdcoder_gitlab
hi @ryanoasis ! Can you please help me a bit? I tried to patch font (IBM VGA8, IBM VGA9) from here - https://int10h.org/oldschool-pc-fonts/download/ultimate_oldschool_pc_font_pack_v1.0.zip, with utility I found in your GitHub repo, but unsuccessful. New font was created but it didn't have any new glyphs. Can you please help? Thank you!
Ryan L McIntyre
@ryanoasis
@capjdcoder_gitlab Sure you can PM me or open an issue on the Nerd Fonts repo, I probably won't be able to dig too deep on it right now though