Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Roman Perepelitsa
    @romkatv
    You can read the code. As I mentioned above, since there is no answer to this question in ~/.p10k.zsh, all other values of this parameter are niche and not very useful.
    Vítor Guerreiro
    @VGuerreiro
    Does that mean the variables that change the settings are supposed to be left at default values?
    in the same example - this is supposed to be left to this value (to 'truncate_to_unique'):
    typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique
    because in the comment there are no options presented, so it's not advised to change, right?
    Roman Perepelitsa
    @romkatv
    Right.
    Vítor Guerreiro
    @VGuerreiro
    right, I'll experiment with it a bit and then I might uninstall
    thanks
    Hebgbs
    @Hebgbs
    Advice: declaration for last character on left, and first character on right? Been awhile since I hand-configured my shell.
    nvm figured it out.
    Andrés David Hurtado Fernández
    @OsiNubis99
    hello I have a question about something I saw in the readme, in one of the gift looks as if the terminal is printed from the bottom up, is this for some p10 or is it the terminal emulator?
    Roman Perepelitsa
    @romkatv
    @OsiNubis99 All shells print at the bottom and scroll content upwards. Try it on your shell of choice. First press and hold ENTER for a few seconds so that you get the cursor at the bottom of the screen. Then run some commands. This is the same thing see in the gif.
    Usually when you open a new terminal window/tab and start a shell, the cursor is at the top but eventually it makes its way to the bottom. I prefer my prompt to always be at the bottom so that I can position my window in such a way that looking at prompt is always comfortable. I can do that because the prompt position is fixed. You cannot easily achieve this in zsh because many things move prompt up -- the main culprit being completion. In zsh4humans v5 I've solved this problem by layering a million hacks on top of each other. It works quite well.
    There are a few details about this stuff in this discussion: romkatv/powerlevel10k-media#2. Here's a demo of my zsh: https://asciinema.org/a/372068. This looks similar to the transient prompt demo with one major difference: Prompt doesn't get pushed up on Ctrl+L, Tab or Ctrl+R (the latter is not shown in the cast).
    Andrés David Hurtado Fernández
    @OsiNubis99
    Thanks!
    Matt Jennings
    @Hollyw00d

    @romkatv
    I love using Powerlevel10k! Just installed on another Mac.

    Can you provide a link so I can donate some money to you?

    Roman Perepelitsa
    @romkatv
    @Hollyw00d Thanks! I don't accept donations but your kind words are appreciated.
    Matt Jennings
    @Hollyw00d
    Great! Thanks @romkatv .
    Andrew Lamarra
    @amlamarra_gitlab
    I enabled the "transient prompt" and now I'm wondering if I can put the directory before the "❯" prompt. This way I know which directory I was in when past commands were run.
    The ~/.p10k.zsh file is a bit overwhelming
    Roman Perepelitsa
    @romkatv
    @amlamarra_gitlab Search for "transient" in your config. Read the comments. Set the value you like. It should take you a minute.
    Andrew Lamarra
    @amlamarra_gitlab
    Ahh, thanks for the tip
    Roman Perepelitsa
    @romkatv
      # Transient prompt works similarly to the builtin transient_rprompt option. It trims down prompt
      # when accepting a command line. Supported values:
      #
      #   - off:      Don't change prompt when accepting a command line.
      #   - always:   Trim down prompt when accepting a command line.
      #   - same-dir: Trim down prompt when accepting a command line unless this is the first command
      #               typed after changing current working directory.
      typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=off
    Sounds like you want "same-dir". FWIW, I originally used that and many people start with it. Invariably, everyone finds out that "always" is better. The current directory isn't as important as it seams in scrollback but it generates a lot of noise.
    Andrew Lamarra
    @amlamarra_gitlab

    Well, I'd like to set it to "always", but was hoping to change it from

    ls
    Documents     Downloads

    To something like

    ~ ❯ ls
    Documents     Downloads
    Is it possible to get that? This is mainly for copy-pasting past commands & output to show someone what I've done.
    I find that I do that a lot. Having the current directory in the prompt is handy
    Andrew Lamarra
    @amlamarra_gitlab
    I figured it out.
      # Default prompt symbol.
      typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='%~ ❯'
    Thanks for the wonderful theme!
    jahan01
    @jahan01
    setting this value POWERLEVEL9K_ANACONDA_SHOW_PYTHON_VERSION=true doesnt seem to work anymore. It doesnt show python version in the prompt for anaconda virtual envs. Was there any recent changes made here ?
    Roman Perepelitsa
    @romkatv
    @jahan01 There hasn't been any changes around POWERLEVEL9K_ANACONDA_SHOW_PYTHON_VERSION. If you believe there is a problem, please open an issue at https://github.com/romkatv/powerlevel10k/issues. Attach your complete config (usually ~/.p10k.zsh), a screenshot showing the output of python --version together with incorrect/unexpected prompt.
    jahan01
    @jahan01
    @romkatv I have raised an issue here romkatv/powerlevel10k#1406 with minimal reproduction steps.
    Found more issues when trying to reproduce, styling seems to work differently with presence of .p10k.zsh file. context prompt and python version for conda prompt are showing fine without the use of .p10k.zsh file but doesn't work if present. Looks like something is being over written in .p10k.zsh but I couldnt figure out where.
    Roman Perepelitsa
    @romkatv
    Thanks for opening romkatv/powerlevel10k#1406. Let's continue there.
    Yuta Katayama
    @yutkat
    @romkatv I know you made the following comment, but are there any plans to enable GitHub sponsors? I'd like to donate to your wonderful software and supports.
    https://gitter.im/powerlevel10k/community?at=6093e98dff705616c776e7dc
    Roman Perepelitsa
    @romkatv
    @yutkat I have no plans to accept donations. This is very unlikely to change. I appreciate your kind words. Thank you!
    Yuta Katayama
    @yutkat
    Thanks for your reply. That's very unfortunate for me. But, your kind Issue responses, chats, and Reddit always help me!
    Cyan
    @Cyl18
    image.png
    hi, wanna ask a question: i dont have the right rainbow prompt
    Roman Perepelitsa
    @romkatv
    It's black on black. Try changing the background color to something less black and you'll see it. By the way, what terminal is that?
    Cyan
    @Cyl18
    image.png
    thanks! @romkatv
    Thomas Roche
    @thoroc
    Re: POWERLEVEL9K_SHORTEN_STRATEGY is there a way to get .../ prefix before the dir name if the strategy is truncate_to_last? just moved from p9k on a new machine
    Roman Perepelitsa
    @romkatv
    Probably. But do you really want it? If the current directory doesn’t start with / or ~, you know it’s truncated. Extra symbols would just waste space.
    Thomas Roche
    @thoroc
    the visual cue previously present was nice to have. If there isn't a config var for that I guess I can live without it.
    Roman Perepelitsa
    @romkatv
    It’s probably possible. I’m on the phone right now, so cannot dig up the right combination of options.
    Nishant Mishra
    @nishant0078
    hi how to make date appear?
    Roman Perepelitsa
    @romkatv
    hi which os?
    Nishant Mishra
    @nishant0078
    arch linux
    Roman Perepelitsa
    @romkatv
    I thought arch displays dates by default